]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
fix message printing; pass anything to systemd if it is up (status is valid action...
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 4 Mar 2012 21:49:24 +0000 (21:49 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sun, 4 Mar 2012 21:49:24 +0000 (21:49 +0000)
svn-id: @12486

service

diff --git a/service b/service
index bc099ae46a14cf786ae4faac286550e37a1b2d6e..3c3071caed0934069fd6f97c9932915a6801b90d 100755 (executable)
--- 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}
This page took 0.057226 seconds and 4 git commands to generate.