mirror of
https://github.com/troglobit/finit.git
synced 2026-11-28 20:58:24 +00:00
doc: clarify and fix confusing pid:/run/bar.pid example
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
f6bfbc86e9
commit
9887003b25
1 file changed
+9
-2
+9
-2
@@ -529,10 +529,17 @@ modified with an optional `pid:`-argument:
|
|||||||
|
|
||||||
pid[:[/path/to/]filename[.pid]]
|
pid[:[/path/to/]filename[.pid]]
|
||||||
|
|
||||||
For example, by adding `pid:/run/foo.pid` to the service `/sbin/bar`,
|
For example, by adding `pid:/run/bar.pid` to the service `/sbin/bar`,
|
||||||
that PID file will, not only be created and removed automatically, but
|
that PID file will, not only be created and removed automatically, but
|
||||||
also be used by the Finit condition subsystem. So a service/run/task
|
also be used by the Finit condition subsystem. So a service/run/task
|
||||||
can depend on `<pid/bar>`.
|
can depend on `<pid/bar>`, like this foo will not be started until bar
|
||||||
|
has started:
|
||||||
|
|
||||||
|
service pid:/run/bar.pid bar -- Bar Service
|
||||||
|
service <pid/bar> foo -- Foo Service
|
||||||
|
|
||||||
|
Needless to say, it is better if `bar` creates its own PID file when it
|
||||||
|
has completed starting up and is ready for service.
|
||||||
|
|
||||||
As an alternative "readiness" notification, Finit supports both systemd
|
As an alternative "readiness" notification, Finit supports both systemd
|
||||||
and s6 style notification. This can be enabled by using the `notify`
|
and s6 style notification. This can be enabled by using the `notify`
|
||||||
|
|||||||
Reference in new issue
Block a user