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
This commit is contained in:
Michael Kerrin 2014-10-24 16:42:12 +01:00
parent 7ef1a7d049
commit 615c6bb95b
1 changed files with 3 additions and 0 deletions

View File

@ -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