Support Arch stable which is now using systemd. Refs #21.

This commit is contained in:
Pedro Algarvio 2013-01-22 20:49:33 +00:00
parent a64e12be0c
commit c9fa4d46d2

View file

@ -807,7 +807,14 @@ install_arch_git() {
}
install_arch_post() {
/etc/rc.d/salt-minion start
if [ -f /usr/bin/systemctl ]; then
# Using systemd
systemctl daemon-reload
sleep 0.2
systemctl restart salt-minion.service
else
/etc/rc.d/salt-minion start
fi
}
#
# Ended Arch Install Functions