mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 02:00:22 +00:00
Start and detach the dameons when starting them.
This commit is contained in:
parent
ac3d316b5a
commit
df6e285604
1 changed files with 8 additions and 8 deletions
|
@ -630,7 +630,7 @@ install_ubuntu_git_post() {
|
||||||
cp ${SALT_GIT_CHECKOUT_DIR}/debian/salt-$fname.init /etc/init.d/salt-$fname
|
cp ${SALT_GIT_CHECKOUT_DIR}/debian/salt-$fname.init /etc/init.d/salt-$fname
|
||||||
chmod +x /etc/init.d/salt-$fname
|
chmod +x /etc/init.d/salt-$fname
|
||||||
fi
|
fi
|
||||||
/etc/init.d/salt-$fname restart
|
/etc/init.d/salt-$fname restart &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
@ -726,7 +726,7 @@ install_debian_git_post() {
|
||||||
cp ${SALT_GIT_CHECKOUT_DIR}/debian/salt-$fname.init /etc/init.d/salt-$fname
|
cp ${SALT_GIT_CHECKOUT_DIR}/debian/salt-$fname.init /etc/init.d/salt-$fname
|
||||||
fi
|
fi
|
||||||
chmod +x /etc/init.d/salt-$fname
|
chmod +x /etc/init.d/salt-$fname
|
||||||
/etc/init.d/salt-$fname start
|
/etc/init.d/salt-$fname start &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
@ -846,7 +846,7 @@ install_centos_stable_post() {
|
||||||
if [ -f /etc/init.d/salt-$fname ]; then
|
if [ -f /etc/init.d/salt-$fname ]; then
|
||||||
# Still in SysV init!?
|
# Still in SysV init!?
|
||||||
/sbin/chkconfig salt-$fname on
|
/sbin/chkconfig salt-$fname on
|
||||||
/etc/init.d/salt-$fname start
|
/etc/init.d/salt-$fname start &
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -908,7 +908,7 @@ install_centos_git_post() {
|
||||||
chmod +x /etc/init.d/salt-${fname}
|
chmod +x /etc/init.d/salt-${fname}
|
||||||
fi
|
fi
|
||||||
/sbin/chkconfig salt-${fname} on
|
/sbin/chkconfig salt-${fname} on
|
||||||
/etc/init.d/salt-${fname} start
|
/etc/init.d/salt-${fname} start &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
@ -1029,7 +1029,7 @@ install_arch_post() {
|
||||||
/usr/bin/systemctl try-restart salt-$fname.service
|
/usr/bin/systemctl try-restart salt-$fname.service
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
/etc/rc.d/salt-$fname start
|
/etc/rc.d/salt-$fname start &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1058,7 +1058,7 @@ install_arch_git_post() {
|
||||||
# SysV init!?
|
# SysV init!?
|
||||||
cp ${SALT_GIT_CHECKOUT_DIR}/pkg/rpm/salt-$fname /etc/rc.d/init.d/salt-$fname
|
cp ${SALT_GIT_CHECKOUT_DIR}/pkg/rpm/salt-$fname /etc/rc.d/init.d/salt-$fname
|
||||||
chmod +x /etc/rc.d/init.d/salt-$fname
|
chmod +x /etc/rc.d/init.d/salt-$fname
|
||||||
/etc/init.d/salt-$fname start
|
/etc/init.d/salt-$fname start &
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
|
@ -1129,11 +1129,11 @@ install_freebsd_git() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_freebsd_90_stable_post() {
|
install_freebsd_90_stable_post() {
|
||||||
salt-minion -d
|
salt-minion -d &
|
||||||
}
|
}
|
||||||
|
|
||||||
install_freebsd_git_post() {
|
install_freebsd_git_post() {
|
||||||
salt-minion -d
|
salt-minion -d &
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
# Ended FreeBSD Install Functions
|
# Ended FreeBSD Install Functions
|
||||||
|
|
Loading…
Add table
Reference in a new issue