Skip to main content

linux_unit

Function linux_unit 

Source
pub fn linux_unit(
    family: Family,
    name: &UnitName,
    run: &Argv,
    user: Option<&UserName>,
    cwd: Option<&AbsPath>,
) -> String
Expand description

A Linux service unit’s file for family: the same text the shell renderer writes and the Ansible backend copies, so a defined service runs the same under either carrier. An OpenRC script on Alpine, else a systemd unit.