mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
This commit is contained in:
parent
e970915e77
commit
cabb8230f3
7 changed files with 47 additions and 33 deletions
|
@ -24,16 +24,6 @@
|
|||
# processname: /usr/bin/salt-master
|
||||
|
||||
|
||||
if [ -f /etc/default/salt ]; then
|
||||
. /etc/default/salt
|
||||
else
|
||||
SALTMASTER=/usr/bin/salt-master
|
||||
PYTHON=/usr/bin/python
|
||||
fi
|
||||
|
||||
# Sanity checks.
|
||||
[ -x $SALTMASTER ] || exit 0
|
||||
|
||||
DEBIAN_VERSION=/etc/debian_version
|
||||
SUSE_RELEASE=/etc/SuSE-release
|
||||
# Source function library.
|
||||
|
@ -45,6 +35,16 @@ else
|
|||
. /etc/rc.d/init.d/functions
|
||||
fi
|
||||
|
||||
if [ -f /etc/default/salt ]; then
|
||||
. /etc/default/salt
|
||||
else
|
||||
SALTMASTER=/usr/bin/salt-master
|
||||
PYTHON=/usr/bin/python
|
||||
fi
|
||||
|
||||
# Sanity checks.
|
||||
[ -x $SALTMASTER ] || exit 0
|
||||
|
||||
SERVICE=salt-master
|
||||
PROCESS=salt-master
|
||||
CONFIG_ARGS=" "
|
||||
|
|
|
@ -25,16 +25,6 @@
|
|||
# processname: /usr/bin/salt-minion
|
||||
|
||||
|
||||
if [ -f /etc/default/salt ]; then
|
||||
. /etc/default/salt
|
||||
else
|
||||
SALTMINION=/usr/bin/salt-minion
|
||||
PYTHON=/usr/bin/python
|
||||
fi
|
||||
|
||||
# Sanity checks.
|
||||
[ -x $SALTMINION ] || exit 0
|
||||
|
||||
DEBIAN_VERSION=/etc/debian_version
|
||||
SUSE_RELEASE=/etc/SuSE-release
|
||||
# Source function library.
|
||||
|
@ -46,6 +36,16 @@ else
|
|||
. /etc/rc.d/init.d/functions
|
||||
fi
|
||||
|
||||
if [ -f /etc/default/salt ]; then
|
||||
. /etc/default/salt
|
||||
else
|
||||
SALTMINION=/usr/bin/salt-minion
|
||||
PYTHON=/usr/bin/python
|
||||
fi
|
||||
|
||||
# Sanity checks.
|
||||
[ -x $SALTMINION ] || exit 0
|
||||
|
||||
SERVICE=salt-minion
|
||||
PROCESS=salt-minion
|
||||
CONFIG_ARGS=" "
|
||||
|
|
|
@ -25,16 +25,6 @@
|
|||
# processname: /usr/bin/salt-syndic
|
||||
|
||||
|
||||
if [ -f /etc/default/salt ]; then
|
||||
. /etc/default/salt
|
||||
else
|
||||
SALTSYNDIC=/usr/bin/salt-syndic
|
||||
PYTHON=/usr/bin/python
|
||||
fi
|
||||
|
||||
# Sanity checks.
|
||||
[ -x $SALTSYNDIC ] || exit 0
|
||||
|
||||
DEBIAN_VERSION=/etc/debian_version
|
||||
SUSE_RELEASE=/etc/SuSE-release
|
||||
# Source function library.
|
||||
|
@ -46,6 +36,16 @@ else
|
|||
. /etc/rc.d/init.d/functions
|
||||
fi
|
||||
|
||||
if [ -f /etc/default/salt ]; then
|
||||
. /etc/default/salt
|
||||
else
|
||||
SALTSYNDIC=/usr/bin/salt-syndic
|
||||
PYTHON=/usr/bin/python
|
||||
fi
|
||||
|
||||
# Sanity checks.
|
||||
[ -x $SALTSYNDIC ] || exit 0
|
||||
|
||||
SERVICE=salt-syndic
|
||||
PROCESS=salt-syndic
|
||||
CONFIG_ARGS=" "
|
||||
|
|
|
@ -308,6 +308,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Sep 11 2013 David Anderson <dave@dubkat.com>
|
||||
- Change sourcing order of init functions and salt default file
|
||||
|
||||
* Sun Aug 25 2013 Florian La Roche <Florian.LaRoche@gmx.net>
|
||||
- fixed preun/postun scripts for salt-minion
|
||||
|
||||
|
|
|
@ -7,5 +7,8 @@ stop on runlevel [!2345]
|
|||
limit nofile 100000 100000
|
||||
|
||||
script
|
||||
exec salt-master
|
||||
# Read configuration variable file if it is present
|
||||
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
|
||||
|
||||
exec salt-master
|
||||
end script
|
||||
|
|
|
@ -13,5 +13,8 @@ stop on runlevel [!2345]
|
|||
#respawn limit 10 5
|
||||
|
||||
script
|
||||
exec salt-minion
|
||||
# Read configuration variable file if it is present
|
||||
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
|
||||
|
||||
exec salt-minion
|
||||
end script
|
||||
|
|
|
@ -5,4 +5,9 @@ start on (net-device-up
|
|||
and runlevel [2345])
|
||||
stop on runlevel [!2345]
|
||||
|
||||
exec salt-syndic
|
||||
script
|
||||
# Read configuration variable file if it is present
|
||||
[ -f /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
|
||||
|
||||
exec salt-syndic
|
||||
end script
|
Loading…
Add table
Reference in a new issue