Bug 709985 - systemd rc-local.service failed, but /etc/rc.local manually ok
Summary: systemd rc-local.service failed, but /etc/rc.local manually ok
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-02 07:37 UTC by Maxime Thépault
Modified: 2011-06-02 16:40 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-02 15:29:35 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.