Added start daemons function support to Fedora git installations.

This commit is contained in:
Pedro Algarvio 2013-02-08 12:01:50 +00:00
parent ac281ec161
commit f5db3710b8

View file

@ -833,7 +833,17 @@ install_fedora_git_post() {
systemctl is-enabled salt-$fname.service || (systemctl preset salt-$fname.service && systemctl enable salt-$fname.service)
sleep 0.1
systemctl daemon-reload
sleep 0.1
done
}
install_fedora_git_start_daemons() {
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
systemctl try-restart salt-$fname.service
done
}