diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-02-27 11:44:46 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-02-27 14:13:04 +0100 |
commit | 065db5d8bd25ab6afd784e45283e4cc3f84cc04d (patch) | |
tree | 2023066685d9ef7bf74d33685040b41d726ca0de /service | |
parent | a48ecedc117a9203f92ccd358e4a5ff31ddb43b1 (diff) | |
download | initscripts-065db5d8bd25ab6afd784e45283e4cc3f84cc04d.tar initscripts-065db5d8bd25ab6afd784e45283e4cc3f84cc04d.tar.gz initscripts-065db5d8bd25ab6afd784e45283e4cc3f84cc04d.tar.bz2 initscripts-065db5d8bd25ab6afd784e45283e4cc3f84cc04d.tar.xz initscripts-065db5d8bd25ab6afd784e45283e4cc3f84cc04d.zip |
service: add condrestart to allowed commands
Diffstat (limited to 'service')
-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 |