S6-RC-ONESHOT-RUN(8)
β¨ NAME β¨
okay so bestie, this is s6-rc-oneshot-run from section 8 of the System Manager's Manual, and it executes a oneshot service's up or down script. That's the whole vibe. π
π SYNOPSIS π
s6-rc-oneshot-run [-l live] [-b] up|down n
πΈ DESCRIPTION πΈ
s6-rc-oneshot-run runs a oneshot service's up or down script, and it pulls that script from the current live compiled database. Lowkey important. β¨
Real talk: this is not meant to be used directly by you, bestie. It's used inside internal scripts created by s6-rc-compile(8), and those get invoked during an s6-rc(8) execution. The way it works: s6-rc-oneshot-run executes into the up or down script of the *n*th oneshot service defined in the current compiled service database β i.e. the compiled linked from the live directory. No cap. π«Ά
π₯ OPTIONS π₯
-l liveβ use the live directory atlive. The default is/run/s6-rc, or what was given to the--livedirconfigure option at compile time. π-bβ blocking lock. If the service database is currently being used by another program,s6-rc-oneshot-runwill wait until that other program has released its lock on the database, then proceed. By default,s6-rc-oneshot-runfails with an error message if the database is currently in use. π
π EXIT STATUS π
3β Invalid service number.4β Invalid service database.100β Wrong usage.111β System call failed.126β Cannot exec script.127β Cannot exec script: executable not found.- other exit codes β Returned from the executed
upordownscript.
π¦ SEE ALSO π¦
Go read these, bestie: s6-rc-faq(7), s6-rc-overview(7), s6-rc-why(7), s6-rc(8), s6-rc-bundle(8), s6-rc-compile(8), s6-rc-db(8), s6-rc-dryrun(8), s6-rc-fdholder-filler(8), s6-rc-format-upgrade(8), s6-rc-init(8), s6-rc-update(8).
This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-rc/s6-rc-oneshot-run.html
π AUTHORS π
- Laurent Bercot
- Alexis <flexibeast@gmail.com> (man page port)
xoxo π this page is the Debian edition, dated April 6, 2023, and its manual tag is <rainbow>S6-RC-ONESHOT-RUN(8)</rainbow>. Periodt.
π¦ where this page comes from
- nixpkgs unstable: s6-rc 0.7.0.0
- nixpkgs unstable: s6-rc-man-pages 0.6.0.0.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms