diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2014-09-21 13:54:51 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-01-28 12:57:11 -0600 |
commit | 8a7e4d38a74c714e1a532e1b7a53fd2a5c528b63 (patch) | |
tree | 79c3e1790c7f5f33d9f72ae41f4678066487ca80 /man | |
parent | 47dd5e37cbf372df3ee0fad2c87226dce5b51587 (diff) |
rc-service: add --ifinactive and --ifnotstarted flags
X-Gentoo-Bug: 523174
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=523174
Diffstat (limited to 'man')
-rw-r--r-- | man/rc-service.8 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/man/rc-service.8 b/man/rc-service.8 index 9260329f..80deb5eb 100644 --- a/man/rc-service.8 +++ b/man/rc-service.8 @@ -20,6 +20,14 @@ .Ar service cmd .Op Ar ... .Nm +.Op Fl I , -ifinactive +.Ar service cmd +.Op Ar ... +.Nm +.Op Fl N , -ifnotstarted +.Ar service cmd +.Op Ar ... +.Nm .Fl e , -exists .Ar service .Nm @@ -36,6 +44,13 @@ If is given then .Nm returns 0 even if the service does not exist. +If +.Fl I , -ifinactive +or +.Fl N , -ifnotstarted +is given then +.Nm +returns 0 if the service exists but is in the wrong state. .Pp If given the .Fl l , -list |