aboutsummaryrefslogtreecommitdiffstats
oneshot-make

goetia-base
goetia
Software
0x53.net

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
  • dependencies can only be one of "dependency1 dependency2 ..." | none.
  • oneshot-make creates the directory workingdir/name
  • it creates the file workingdir/name/type and writes the line oneshot to it.
  • it creates the file workingdir/name/up and writes upscript to it.
  • it creates the file workingdir/name/down and writes downscript to it.
  • If dependencies is not none:
    • The directory workingdir/name/dependencies.d is created.
    • For each word "dependency1 dependency2 ..." in dependencies separated by spaces, a file workingdir/name/dependencies.d/dependency is created.

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.