mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
16 lines
427 B
Plaintext
16 lines
427 B
Plaintext
|
description "salt-syndic"
|
||
|
|
||
|
start on runlevel [2345]
|
||
|
stop on runlevel [!2345]
|
||
|
|
||
|
script
|
||
|
# Read configuration variable file if it is present
|
||
|
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
|
||
|
|
||
|
# 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
|
||
|
end script
|