]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
upstart: behave like current initscripts: print running/not running instead of silence
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 31 Aug 2011 18:44:11 +0000 (18:44 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Wed, 31 Aug 2011 18:44:11 +0000 (18:44 +0000)
svn-id: @12337

lib/functions

index be2f4e1c8d9e7bf3f3b907b48fa7e65d69dee6ca..10d2ada2da0c9b34a8d5bf7cf91fda94c29bb40b 100644 (file)
@@ -1224,7 +1224,11 @@ is_upstart_running() {
 }
 upstart_start() {
        local service=$1
-       is_upstart_running "${service}" && return 0
+       if is_upstart_running "${service}"; then
+               msg_already_running "$service"
+               return 0
+       fi
+
        msg_starting "${service}"
        if errors=$(/sbin/initctl start ${service} 2>&1) ; then
                ok
@@ -1237,7 +1241,8 @@ upstart_start() {
 }
 upstart_stop() {
        local service=$1
-       if ! is_upstart_running "${service}" && ! is_upstart_task "${service}" ; then
+       if ! is_upstart_running "${service}"; then
+               msg_not_running "$name"
                return 0
        fi
        msg_stopping "${service}"
This page took 0.038354 seconds and 4 git commands to generate.