]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: Add "GuessMainPID=no" to compatibility unit for rc-local (#3018)
authorCalvin Owens <jcalvinowens@gmail.com>
Thu, 21 Apr 2016 17:16:28 +0000 (10:16 -0700)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Apr 2016 17:16:28 +0000 (19:16 +0200)
With the current "Type=forking", systemd tries to guess the PID it
should wait on at reboot (because we have no "PIDFile="). Depending on
how wrong the guess is, we can end up hanging forever at reboot.

Asking it not to do that eliminates the problem.

units/rc-local.service.in

index d4db1747ed1eece7fb7ebb35ec970ec0bafd06f4..480dddbe37620acc3be51c9597837926fbbebba0 100644 (file)
@@ -17,3 +17,4 @@ Type=forking
 ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start
 TimeoutSec=0
 RemainAfterExit=yes
+GuessMainPID=no