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:
Calvin Owens 2016-04-21 10:16:28 -07:00 committed by Lennart Poettering
parent 0c241a378d
commit 7797fd2470
1 changed files with 1 additions and 0 deletions

View File

@ -17,3 +17,4 @@ Type=forking
ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no