mirror of
https://github.com/systemd/systemd
synced 2024-07-09 04:26:06 +00:00
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
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
GuessMainPID=no
|
||||
|
|
Loading…
Reference in New Issue
Block a user