mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
17 lines
420 B
Plaintext
17 lines
420 B
Plaintext
description "salt-syndic"
|
|
|
|
start on (net-device-up
|
|
and local-filesystems
|
|
and 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
|
|
|
|
exec salt-syndic
|
|
end script
|