Bug 709985

Summary: systemd rc-local.service failed, but /etc/rc.local manually ok
Product: [Fedora] Fedora Reporter: Maxime Thépault <sites>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: harald, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-02 15:29:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Maxime Thépault 2011-06-02 07:37:16 UTC
Description of problem:

On startup, systemd rc-local.service failed.

Version-Release number of selected component (if applicable):
  
Actual results:

Jun  2 09:31:38 systemd[1]: rc-local.service: control process exited, code=exited status=1

rc-local.service          loaded failed failed        /etc/rc.local Compatibility

Expected results:
rc-local.service          loaded active running       /etc/rc.local Compatibility


Additional info:
If I run /etc/rc.local manually, it works...

Maybe do you have any idea ?

Thank you

Comment 1 Lennart Poettering 2011-06-02 08:51:09 UTC
Your script returns exit code 1 as it appears. systemd considers that a failure.

Comment 2 Maxime Thépault 2011-06-02 16:40:57 UTC
Thank you, I found the bug, it was a program that use sudo :

Before, with init.d, no problem, but now with systemd, it seem not use a tty, so I obtained : sudo: sorry, you must have a tty to run sudo

So, I removed "Defaults    requiretty" into /etc/sudoers and it works.