From 7797fd2470db2af31d1cb9f49abda52ccd9a70b3 Mon Sep 17 00:00:00 2001 From: Calvin Owens Date: Thu, 21 Apr 2016 10:16:28 -0700 Subject: [PATCH] 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. --- units/rc-local.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/rc-local.service.in b/units/rc-local.service.in index d4db1747ed..480dddbe37 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