finit2

Service

A service is defined using a systemd style service file. But finit doesn't support all the different options defined by systemd (about 850). It only supports this tiny subset and ignores the rest:

There are basically three types of servises:

  1. Child: The service will run as a child to finit. The only way for finit to delay until the service is ready is if it uses the systemd notification protocol. Otherwise finit will assume it's immediately ready.
  2. Daemon: The service will run independently by forking then it's ready. For finit to be able to keep track of it, a path to a PID file must be provided.
  3. Oneshot: The service only executes something to get ready. Nothing remains running.

The types defined by systemd are these: