summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-05-01 08:38:57 +0100
committerRoy Marples <roy@marples.name>2009-05-01 08:38:57 +0100
commitfb051bf81ac698d0618b611abc7120c32da467c3 (patch)
tree26ec8023cd3c4e4f463fc710848c21e9f864473d /man
parentcaf29a6480e56399d1fa18c5d7bfe32f47f1c1f4 (diff)
downloadopenrc-fb051bf81ac698d0618b611abc7120c32da467c3.tar.gz
openrc-fb051bf81ac698d0618b611abc7120c32da467c3.tar.bz2
openrc-fb051bf81ac698d0618b611abc7120c32da467c3.tar.xz
Add -i, --ifexists so that we can do this
rc-sercice -i foo -- restart instead of this rc-service -e foo && rc-service foo -- restart
Diffstat (limited to 'man')
-rw-r--r--man/rc-service.818
1 files changed, 12 insertions, 6 deletions
diff --git a/man/rc-service.8 b/man/rc-service.8
index 7d9f398..b19bb23 100644
--- a/man/rc-service.8
+++ b/man/rc-service.8
@@ -1,4 +1,4 @@
-.\" Copyright 2008 Roy Marples
+.\" Copyright 2008-2009 Roy Marples
.\" All rights reserved
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd Mar 26, 2008
+.Dd May 1, 2009
.Dt RC-SERVICE 8 SMM
.Os OpenRC
.Sh NAME
@@ -30,20 +30,26 @@
.Nd locate and run an OpenRC service with the given arguments
.Sh SYNOPSIS
.Nm
+.Op Fl i , -ifexists
.Ar service cmd
.Op Ar ...
.Nm
-.Fl l , -list
-.Nm
.Fl e , -exists
.Ar service
.Nm
+.Fl l , -list
+.Nm
.Fl r , -resolve
.Ar service
.Sh DESCRIPTION
Service scripts could be in different places on different systems.
.Nm
locates the specified service and runs it with the given arguments.
+If
+.Fl i , -ifexists
+is given then
+.Nm
+returns 0 even if the service does not exist.
.Pp
If given the
.Fl l , -list
@@ -51,11 +57,11 @@ argument then
.Nm
will list all available services.
.Pp
-.Fl -e , exists
+.Fl e , -exists
return 0 if it can find
.Ar service ,
otherwise -1.
-.Fl -r , resolve
+.Fl r , -resolve
does the same and also prints the full path of the service to stdout.
.Sh SEE ALSO
.Xr rc 8 ,