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:
parent
3211e6d277
commit
4762f65dc1
@ -19,9 +19,7 @@ end script
|
|||||||
|
|
||||||
respawn
|
respawn
|
||||||
|
|
||||||
script
|
exec start-stop-daemon --start -c $user --exec /opt/stack/venvs/$user/bin/$cmd $args
|
||||||
exec sudo -u $user /opt/stack/venvs/$user/bin/$cmd $args
|
|
||||||
end script
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user