From: Calvin Owens Date: Thu, 21 Apr 2016 17:16:28 +0000 (-0700) Subject: units: Add "GuessMainPID=no" to compatibility unit for rc-local (#3018) X-Git-Tag: v230~156 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7797fd2470db2af31d1cb9f49abda52ccd9a70b3;p=thirdparty%2Fsystemd.git 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. --- diff --git a/units/rc-local.service.in b/units/rc-local.service.in index d4db1747ed1..480dddbe376 100644 --- a/units/rc-local.service.in +++ b/units/rc-local.service.in @@ -17,3 +17,4 @@ Type=forking ExecStart=@RC_LOCAL_SCRIPT_PATH_START@ start TimeoutSec=0 RemainAfterExit=yes +GuessMainPID=no