Up version to 0.2.0.
[oweals/dinit.git] / doc / manpages / dinit-service.5
index 64fefbb9b50582d0279177bde11a8ad3dd04ce9d..5b2c02a140f40ffb86867dc1649cad900e20d205 100644 (file)
@@ -1,4 +1,4 @@
-.TH DINIT-SERVICE "5" "March 2018" "Dinit 0.1.0" "Dinit \- service management system"
+.TH DINIT-SERVICE "5" "June 2018" "Dinit 0.2.0" "Dinit \- service management system"
 .SH NAME
 Dinit service description files
 .\"
@@ -16,8 +16,9 @@ of the file corresponds to the name of the service it describes.
 Service description files specify the various attributes of a service. A
 service description file is named after the service it represents, and is
 a plain-text file with simple key-value format. The description files are
-located in the service description directory (which defaults to
-\fI/etc/dinit.d\fR for the system process).
+located in a service description directory; by default, the system process
+searches \fI/etc/dinit.d\fR, \fI/usr/local/lib/dinit.d\fR and
+\fI/lib/dinit.d\fR, while a user process searches \fI$HOME/dinit.d\fR.
 .LP
 All services have a \fItype\fR and a set of \fIdependencies\fR. Service
 types are discussed in the following subsection. If a service depends on
@@ -200,6 +201,15 @@ will go this file.
 .TP
 \fBoptions\fR = \fIoption\fR...
 Specifies various options for this service. See the \fBOPTIONS\fR section.
+.TP
+\fBload-options\fR = \fIload_option\fR...
+Specifies options for interpreting other settings when loading this service
+description. Currently there is only one available option, \fBsub-vars\fR,
+which specifies that command line arguments in the form of \fB$NAME\fR should
+be replaced with the contents of the environment variable with the specified
+name. Note that no word-splitting is performed and the variable value always
+becomes a single argument; if the variable is not defined, it is replaced with
+an empty (zero-length) argument.
 .\"
 .SS OPTIONS
 .\"