~skiqqy/start.d

User space init system
e011fe2b — Stephen Cochrane 1 year, 8 months ago
Small fix to run script, to force work dir to be the same as the caller's wd
0facc299 — Stephen Cochrane 1 year, 8 months ago
Updated license
35e93c66 — Stephen Cochrane 1 year, 8 months ago
Remoced duplicate comment

refs

master
browse  log 
v1.0.0-beta
browse  .tar.gz 

clone

read-only
https://git.sr.ht/~skiqqy/start.d
read/write
git@git.sr.ht:~skiqqy/start.d

You can also use your local clone with git send-email.

#start.d

Simple user space, init system, pronounced started

#Installing

First we need to get the distribution (start.d-<VERSION>-dist.zip), we get this by running

$ mvn package # Distribution will be placed in target/

or, by downloading the latest stable distribution.

Next, we unpack the distribution,

$ unzip start.d-<VERSION>-dist.zip -d /tmp

Next run the install script in the unzipped directory, as root.

$ ./install # This should be ran as root

#Uninstalling

$ ./install remove # This should be ran as root

You can, also play around with start.d before installing if you like (you can run ./start.d.sh -h and go from there)

#Building

$ mvn package

#Usage

Simply run:

$ start.d -h

This prints something similar too

  start.d ~ The user space init system

   Usage: $ start.d [OPTIONS] COMMAND SERVICE

    Options
     -h --help                              Shows this message
     -w --work-dir /PATH/TO/WORKING/DIR     Specify the working directory
     -p --port PORT                         Specify the port to communicate on
     --create-wd                            Creates any missing parent directories in the working directory
     --create-wd-only                       Creates any missing parent directories in the working directory, then exits
     --daemon                               Enters daemon mode, starting up all services found in enable, and monitors for changes etc
     --status                               Prints the status for all current services
     --pool-size                            Specify the size of the thread pools (applied to both service pool and internal task pool)

    Commands
     status         Get information about a service
     enable         Start a service when the daemon is finished starting up
     disable        Remove a service from the list of services to be started when the daemon is finished starting up
     start          Start a service
     stop           Stop a service
     restart        Restart a service
     kill           Forcefully stop a service
     add            Read a service config from stdin, saving it
     edit           Opens service in the system $EDITOR
     new            Opens a new sample service in the system $EDITOR, similar to ADD and EDIT
     delete         Deletes the service config, and killing the service if its running

  Written with <3 by Stephen Cochrane

#Licencse

License: