From 2a792152276cda8844cfd5b96485db2e06b9fb99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 4 Mar 2012 21:49:24 +0000 Subject: [PATCH] fix message printing; pass anything to systemd if it is up (status is valid action too) svn-id: @12486 --- service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service b/service index bc099ae4..3c3071ca 100755 --- a/service +++ b/service @@ -124,8 +124,8 @@ while [ $# -gt 0 ]; do esac done -if [ -x /bin/systemd_booted ] && /bin/systemd_booted && /bin/systemctl status ${SERVICE}.service > /dev/null 2>&1; then - echo >&2 "Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service" +if [ -x /bin/systemd_booted ] && /bin/systemd_booted; then + echo >&2 "Redirecting to /bin/systemctl ${ACTION} ${SERVICE}.service ${OPTIONS}" exec /bin/systemctl ${ACTION} ${SERVICE}.service ${OPTIONS} elif [ -x "${SERVICEDIR}/${SERVICE}" ]; then exec env -i USE_UPSTART=$USE_UPSTART LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${ACTION} ${OPTIONS} -- 2.44.0