The oneshot-make program
oneshot-make contains boilerplate code required to create the source directory of a oneshot service based on strings.
Interface
oneshot-make workingdir name upscript downscript dependencies
-
dependenciescan only be one of"dependency1 dependency2 ..." | none. -
oneshot-make creates the directory
workingdir/name -
it creates the file
workingdir/name/typeand writes the lineoneshotto it. -
it creates the file
workingdir/name/upand writesupscriptto it. -
it creates the file
workingdir/name/downand writesdownscriptto it. -
If
dependenciesis notnone:-
The directory
workingdir/name/dependencies.dis created. -
For each word
"dependency1 dependency2 ..."independenciesseparated by spaces, a fileworkingdir/name/dependencies.d/dependencyis created.
-
The directory
Exit codes
- 0: success
- Since oneshot-make is an execline script, it exits with an approximation of employed program that failed.
- oneshot-make mostly uses execline and s6 software, the exit behaviour of which can be looked up on their respective pages.
- See also: execline exit code handling.
Options
- There are no otions to oneshot-make.
