@@ -124,8 +124,10 @@ a feel for what using Dinit is like. For a complete reference, see the _man_ pag
124
124
A "service" is nominally a persistent process or system state. The two main
125
125
types of service are a _ process_ service (represented by a an actual process)
126
126
and a _ scripted_ service (which is started and stopped by running a process -
127
- often a shell script - to completion). There are also _ bgprocess_ services
128
- and _ internal_ services. See the [ dinit-service(5)] ( https://davmac.org/projects/dinit/man-pages-html/dinit-service.5.html )
127
+ often a shell script - to completion). There are also _ bgprocess_ services (for processes which
128
+ put themselves "in the background" by forking), _ internal_ services (useful for grouping other
129
+ processes or acting as checkpoints), and _ triggered_ services (which require an external event
130
+ or trigger to start). See the [ dinit-service(5)] ( https://davmac.org/projects/dinit/man-pages-html/dinit-service.5.html )
129
131
manual page for details.
130
132
131
133
Many programs that you might want to run under Dinit's supervision can run
@@ -155,7 +157,7 @@ the [doc/linux/services](doc/linux/services) directory).
155
157
A service description file has a textual format and consists of a number of
156
158
parameter settings. Some examples of the available parameters are:
157
159
158
- type = process | bgprocess | scripted | internal
160
+ type = process | bgprocess | scripted | internal | triggered
159
161
command = ...
160
162
stop-command = ...
161
163
run-as = (user-id)
@@ -173,8 +175,8 @@ for general operation). For example, a service description for `sshd` might look
173
175
174
176
type = process
175
177
command = /usr/sbin/sshd -D
176
- waits-for = syslogd
177
- depends-on = loginready
178
+ waits-for: syslogd
179
+ depends-on: loginready
178
180
179
181
In this example, ` syslogd ` and ` loginready ` are also services (which must have their own service
180
182
descriptions).
0 commit comments