feat: OpenRC and runit init backends behind an Init interface
Extract init-neutral unit resolution into service/, add initsys.Init with systemd, openrc and runit backends, selected by 'init:' config or autodetect. OpenRC and runit are root only; rootless units run as system services as that user. Add docs and generated examples for all three.
This commit is contained in:
+3
-2
@@ -16,10 +16,11 @@ var configPath string
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "unitdore",
|
||||
Short: "A door you open and close for container units",
|
||||
Long: `Unitdore manages container units via systemd.
|
||||
Long: `Unitdore manages container units via the system init (systemd, OpenRC or runit).
|
||||
|
||||
It discovers running containers and podman-compose stacks, stores them in a
|
||||
config file, and generates + manages systemd .service units for each one.
|
||||
config file, and generates + manages init service units for each one (systemd by default;
|
||||
set 'init:' in the config for openrc or runit).
|
||||
|
||||
As root: system units, plus user units for users listed in 'users:'.
|
||||
As a normal user: own config and user units only.`,
|
||||
|
||||
Reference in New Issue
Block a user