]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- systemd bits
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Mar 2012 20:35:58 +0000 (20:35 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Mar 2012 20:35:58 +0000 (20:35 +0000)
svn-id: @12482

service

diff --git a/service b/service
index 5567c74488c8cd835648ae62d77f7831f3cb8c62..22a6e9943dc9e493aeb450b435b8936a65f6249f 100755 (executable)
--- a/service
+++ b/service
@@ -85,6 +85,14 @@ while [ $# -gt 0 ]; do
                echo "${VERSION}" >&2
                exit 0
                ;;
+    --ignore-dependencies)
+       export SYSTEMCTL_IGNORE_DEPENDENCIES=1
+       shift
+       ;;
+    --skip-redirect)
+       export SYSTEMCTL_SKIP_REDIRECT=1
+       shift
+       ;;
        --upstart)
                USE_UPSTART=yes
                shift
@@ -118,6 +126,9 @@ done
 
 if [ -x "${SERVICEDIR}/${SERVICE}" ]; then
        exec env -i USE_UPSTART=$USE_UPSTART LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${ACTION} ${OPTIONS}
+elif [ -x /bin/systemd_booted ] && systemd_booted; then
+       echo >&2 "Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service"
+       exec /bin/systemctl ${OPTIONS} ${SERVICE}.service
 else
        echo "${SERVICE}: unrecognized service" >&2
        exit 1
This page took 0.084536 seconds and 4 git commands to generate.