s6-rc
Software
skarnet.org
The s6-rc-oneshot-run internal program
s6-rc-oneshot-run executes a oneshot service's up or
down script taken from the current live compiled database.
s6-rc-oneshot-run is not meant to be used directly; it is used
in internal scripts created by
s6-rc-compile, which are invoked during an
s6-rc execution.
Interface
s6-rc-oneshot-run [ -l live ] up|down n
- s6-rc-oneshot-run executes into the up or down script,
depending on its first argument, of the nth oneshot service defined
in the current compiled service database (i.e. the compiled linked from the
live directory).
Options
- -l live : use the live directory in
live. Default is /run/s6-rc, or what was given to the
--livedir configure option at compile time.
Exit codes
- 3: invalid service number
- 4: invalid service database
- 100: wrong usage
- 111: system call failed
- other exit codes: returned from the executed up or down script