Streamline upstart scripts in os-svc-daemon

Best practice is to use start-stop-daemon rather than sudo, as sudo will
apply user-centric pam limits and create a wtmp entry. Also there is no
need for a script stanza, as we are only execing one command.

Change-Id: I0c2f12536b56d90fd43ab40e74424350efcc0b61
This commit is contained in:
Clint Byrum 2013-04-03 11:28:53 -07:00
parent 3211e6d277
commit 4762f65dc1
1 changed files with 1 additions and 3 deletions

View File

@ -19,9 +19,7 @@ end script
respawn
script
exec sudo -u $user /opt/stack/venvs/$user/bin/$cmd $args
end script
exec start-stop-daemon --start -c $user --exec /opt/stack/venvs/$user/bin/$cmd $args
EOF
}