From 615c6bb95b818551934e652e70cd7833f965ccd6 Mon Sep 17 00:00:00 2001 From: Michael Kerrin Date: Fri, 24 Oct 2014 16:42:12 +0100 Subject: [PATCH] We need to tell upstart to expect the logger fork Otherwise upstart doesn't get the correct process id for the service and in some causes can fail to kill the process during a servcie stop Change-Id: I138dd2206ed1e511fbabaf43bd3cb1d163c76db4 Closes-bug: #1385346 --- elements/os-svc-install/bin/os-svc-daemon | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elements/os-svc-install/bin/os-svc-daemon b/elements/os-svc-install/bin/os-svc-daemon index fd5ff0bd6..9201a93f1 100755 --- a/elements/os-svc-install/bin/os-svc-daemon +++ b/elements/os-svc-install/bin/os-svc-daemon @@ -134,6 +134,9 @@ respawn limit 2 5 # We're logging to syslog console none +# The pipe to logger introduces a fork, so we need to tell upstart +expect fork + exec start-stop-daemon --start -c $user --exec $install_dir/bin/$cmd -- $args 2>&1 | logger -t $name post-start $POSTSTART