:: Re: [DNG] New goodies from systemd
Pàgina inicial
Delete this message
Reply to this message
Autor: aitor
Data:  
A: dng
Assumptes nous: [DNG] s6 in devuan (Was Re: New goodies from systemd)
Assumpte: Re: [DNG] New goodies from systemd
Hi,

On 9/8/23 12:30, wirelessduck--- via Dng wrote:
> So how does it get defined as a oneshot service to run once on
> startup? I'm guessing running `sv once` is a manual operation.


I think that the most reasonable way is to invoke `run once <service>`
within the runit run script of another service that depends on it. For
example, a service that needs to load the kernel parameters would invoke
`sv once procps`

> The run scripts themselves do not define what type of service they are?


No, they don't. The *.service files of systemd do define the type as follows:

[Service]
Type=oneshot

They make a subtle distinction between simple and oneshot though.

Cheers,

Aitor.