diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2014-02-13 10:59:45 +0100 |
---|---|---|
committer | Lukas Nykryn <lnykryn@redhat.com> | 2014-02-13 10:59:45 +0100 |
commit | 91be992ff55852d0ca8127ac096ef01d4ef055db (patch) | |
tree | 7d46b4102924f0d55f491dbf6c3fc3a12defa493 /service | |
parent | 05ced420e49dce5eb480b20dee00d56e348e9110 (diff) | |
download | initscripts-91be992ff55852d0ca8127ac096ef01d4ef055db.tar initscripts-91be992ff55852d0ca8127ac096ef01d4ef055db.tar.gz initscripts-91be992ff55852d0ca8127ac096ef01d4ef055db.tar.bz2 initscripts-91be992ff55852d0ca8127ac096ef01d4ef055db.tar.xz initscripts-91be992ff55852d0ca8127ac096ef01d4ef055db.zip |
service: fix action matching
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 -q "start|stop|restart|try-restart|reload|force-reload|status"` ; then +elif `echo $ACTION | egrep -qw "start|stop|restart|try-restart|reload|force-reload|status"` ; then echo $"Redirecting to /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service" >&2 exec /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service else |