units: Add "GuessMainPID=no" to compatibility unit for rc-local (#3018)
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.
This commit is contained in:
parent
0c241a378d
commit
7797fd2470
|
@ -17,3 +17,4 @@ Type=forking
|
||||||
ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start
|
ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start
|
||||||
TimeoutSec=0
|
TimeoutSec=0
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
GuessMainPID=no
|
||||||
|
|
Loading…
Reference in a new issue