rc.local not start at the boot

Matthew Miller mattdm at fedoraproject.org
Tue Oct 28 23:21:50 UTC 2014


On Wed, Oct 29, 2014 at 07:18:25AM +0800, Ed Greshko wrote:
> >> rc.local is working just fine!!
> > Riddle me this, Ed: why does systemctl report that rc-local.service failed?
> I don't know, and at this point I don't care.
> Since /tmp/rc.local.log exists and contains
> + /home/angelo_dev/bin/syncronize-java_srcs.sh
> it is obvious that rc.local is being executed.
> If I were going to assume something I would assume the systemctl failure is related to the failure in the syncronize-java_srcs.sh script.

Parachuting into the thread here — this seems right. systemd will
report's rc-local's status as that of the exit code of the script. If
you want it to alway succeed, end it with

exit 0

(or just ':', although I think `exit 0` is more obvious.)

-- 
Matthew Miller
<mattdm at fedoraproject.org>
Fedora Project Leader


More information about the users mailing list