mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Added start daemons function support to CentOS stable installations.
This commit is contained in:
parent
f5db3710b8
commit
e4de330af2
1 changed files with 14 additions and 1 deletions
|
@ -882,6 +882,20 @@ install_centos_stable() {
|
|||
}
|
||||
|
||||
install_centos_stable_post() {
|
||||
for fname in minion master syndic; do
|
||||
# Skip if not meant to be installed
|
||||
[ $fname = "minion" ] && [ $INSTALL_MINION -eq 0 ] && continue
|
||||
[ $fname = "master" ] && [ $INSTALL_MASTER -eq 0 ] && continue
|
||||
[ $fname = "syndic" ] && [ $INSTALL_SYNDIC -eq 0 ] && continue
|
||||
|
||||
if [ ! -f /sbin/initctl ] && [ -f /etc/init.d/salt-$fname ]; then
|
||||
# Still in SysV init!?
|
||||
/sbin/chkconfig salt-$fname on
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
install_centos_stable_start_daemons() {
|
||||
for fname in minion master syndic; do
|
||||
# Skip if not meant to be installed
|
||||
[ $fname = "minion" ] && [ $INSTALL_MINION -eq 0 ] && continue
|
||||
|
@ -905,7 +919,6 @@ install_centos_stable_post() {
|
|||
|
||||
if [ -f /etc/init.d/salt-$fname ]; then
|
||||
# Still in SysV init!?
|
||||
/sbin/chkconfig salt-$fname on
|
||||
/etc/init.d/salt-$fname start &
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue