If a service is disabled its flags are unconditionally set to "NO", so
authorajacoutot <ajacoutot@openbsd.org>
Thu, 21 Aug 2014 08:54:58 +0000 (08:54 +0000)
committerajacoutot <ajacoutot@openbsd.org>
Thu, 21 Aug 2014 08:54:58 +0000 (08:54 +0000)
there's not need to display "enabled" or "disabled" when calling "status",
we have the information already.

usr.sbin/rcctl/rcctl.sh

index a2ed600..b70f3f4 100644 (file)
@@ -111,7 +111,6 @@ svc_get_status()
        else
                for _i in $(svc_get_all); do
                        printf "%18s" ${_i}
-                       svc_is_enabled ${_i} && echo -n "(enabled)" || echo -n "(disabled)"
                        echo -n "\tflags="
                        svc_get_flags ${_i}
                done