3 ms·
> Yet systemd doesn't have an equivalent to runit's sv once. I'm not familiar with runit. Is this approximately equivalent to 'systemctl start service' when se
by rascul 2y ago
> Yet systemd doesn't have an equivalent to runit's sv once.
I'm not familiar with runit. Is this approximately equivalent to 'systemctl start service' when service uses the default of Restart=no ?
- USiBqidmOOkAqRb 2y agoYes, but, as the name implies, only once, and selectively at runtime. If you have a service and issue sv once on it, it will not be restarted, but its configuration is not changed so it will run normally after system restart.
- XorNot 2y agoThat's a one-shot service[1]. RemainAfterExit=yes is what achieves the effect (i.e. if the process terminates it is regarded as still active for system-dependency purposes / status unless you purposefully mark it otherwise). [1] https://www.redhat.com/sysadmin/systemd-oneshot-service https://www.redhat.com/sysadmin/systemd-oneshot-service