[gentoo] added support for systemd on Gentoo.

This commit is contained in:
Elias Probst 2013-09-24 02:01:48 +02:00
parent 425ce4351f
commit 593c5f74a5

View file

@ -2851,8 +2851,13 @@ install_gentoo_restart_daemons() {
[ $fname = "master" ] && [ $_INSTALL_MASTER -eq $BS_FALSE ] && continue
[ $fname = "syndic" ] && [ $_INSTALL_SYNDIC -eq $BS_FALSE ] && continue
/etc/init.d/salt-$fname stop > /dev/null 2>&1
/etc/init.d/salt-$fname start
if [ -d "/run/systemd/system" ]; then
systemctl stop salt-$fname > /dev/null 2>&1
systemctl start salt-$fname.service
else
/etc/init.d/salt-$fname stop > /dev/null 2>&1
/etc/init.d/salt-$fname start
fi
done
}