Skip to main content

service

Function service 

Source
pub fn service(
    name: &str,
    what: &str,
    script: &str,
    kind: Kind,
    after: &[&str],
) -> String
Expand description

script saved as /etc/isoloom/<name>.sh and run as the systemd service isoloom-<name>, started now and at every boot after (and requiring) after’s: at_boot’s script and unit, for a step whose failure matters (Kind::Once) or a process that keeps running (Kind::Daemon).

Without systemd (OpenRC: Alpine), it runs from /etc/local.d at boot (in the background for a daemon, its output in /var/log/isoloom-<name>.log), and now.