diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-02-27 11:44:46 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-03-03 15:43:32 +0100 |
commit | bf7df98bca99687039953befcf666633e9cc3cf0 (patch) | |
tree | bb00747687889baf47a691c33043e5eebca68e12 | |
parent | 7e48a9c7ed61bcfec8e6b11dfb5bef336daba1bb (diff) | |
download | initscripts-bf7df98bca99687039953befcf666633e9cc3cf0.tar initscripts-bf7df98bca99687039953befcf666633e9cc3cf0.tar.gz initscripts-bf7df98bca99687039953befcf666633e9cc3cf0.tar.bz2 initscripts-bf7df98bca99687039953befcf666633e9cc3cf0.tar.xz initscripts-bf7df98bca99687039953befcf666633e9cc3cf0.zip |
service: add condrestart to allowed commands
-rwxr-xr-x | service | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -74,7 +74,7 @@ if [ -f "${SERVICEDIR}/${SERVICE}" ]; then env -i PATH="$PATH" TERM="$TERM" SYSTEMCTL_IGNORE_DEPENDENCIES=${SYSTEMCTL_IGNORE_DEPENDENCIES} SYSTEMCTL_SKIP_REDIRECT=${SYSTEMCTL_SKIP_REDIRECT} "${SERVICEDIR}/${SERVICE}" ${ACTION} ${OPTIONS} elif [ -x "${ACTIONDIR}/${SERVICE}/${ACTION}" -a -n "${ACTION}" ]; then env -i PATH="$PATH" TERM="$TERM" SYSTEMCTL_IGNORE_DEPENDENCIES=${SYSTEMCTL_IGNORE_DEPENDENCIES} SYSTEMCTL_SKIP_REDIRECT=${SYSTEMCTL_SKIP_REDIRECT} "${ACTIONDIR}/${SERVICE}/${ACTION}" ${OPTIONS} -elif `echo $ACTION | egrep -qw "start|stop|restart|try-restart|reload|force-reload|status"` ; then +elif `echo $ACTION | egrep -qw "start|stop|restart|try-restart|reload|force-reload|status|condrestart"` ; then echo $"Redirecting to /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service" >&2 exec /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service else |