summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Owens <jcalvinowens@gmail.com>2016-04-21 10:16:28 -0700
committerLennart Poettering <lennart@poettering.net>2016-04-21 19:16:28 +0200
commit7797fd2470db2af31d1cb9f49abda52ccd9a70b3 (patch)
tree5556d12ac79e300d433a62c265726b7b967266b4
parent0c241a378d9fdb0a1f462829e1e2ba9e8b036c06 (diff)
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.
-rw-r--r--units/rc-local.service.in1
1 files changed, 1 insertions, 0 deletions
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