Remove "su -c" from upstart scripts

This commit is contained in:
David Anderson 2014-03-25 16:10:08 -06:00
parent 95ade395d6
commit 31d7d327be
6 changed files with 6 additions and 12 deletions

View file

@ -13,6 +13,5 @@ script
# Activate the virtualenv if defined
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
# invoke salt-master via su so that /etc/environment is read
exec su -c salt-master
exec salt-master
end script

View file

@ -11,6 +11,5 @@ script
# Activate the virtualenv if defined
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
# invoke salt-master via su so that /etc/environment is read
exec su -c salt-master
exec salt-master
end script

View file

@ -19,6 +19,5 @@ script
# Activate the virtualenv if defined
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
# invoke salt-minion via su so that /etc/environment is read
exec su -c salt-minion
exec salt-minion
end script

View file

@ -17,6 +17,5 @@ script
# Activate the virtualenv if defined
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
# invoke salt-minion via su so that /etc/environment is read
exec su -c salt-minion
exec salt-minion
end script

View file

@ -12,6 +12,5 @@ script
# Activate the virtualenv if defined
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
# invoke salt-syndic via su so that /etc/environment is read
exec su -c salt-syndic
exec salt-syndic
end script

View file

@ -10,6 +10,5 @@ script
# Activate the virtualenv if defined
[ -f $SALT_USE_VIRTUALENV/bin/activate ] && . $SALT_USE_VIRTUALENV/bin/activate
# invoke salt-syndic via su so that /etc/environment is read
exec su -c salt-syndic
exec salt-syndic
end script