Fix rc-service command.

This commit is contained in:
Roy Marples 2008-05-27 11:22:58 +00:00
parent acf37f8de9
commit 920dfbc94e

View File

@ -3,7 +3,7 @@
# Detect OpenRC or BSD rc
# Distributions may want to just have their command here instead of this
if type rc-service >/dev/null 2>&1 && rc-service --exists ntpd; then
ntpd_restart_cmd="rc-service -- ntpd --ifstarted --quiet restart"
ntpd_restart_cmd="rc-service ntpd -- --ifstarted --quiet restart"
elif [ -x /etc/rc.d/ntpd ]; then
ntpd_restart_cmd="/etc/rc.d/ntpd restart"
elif [ -x /usr/local/etc/rc.d/ntpd ]; then