:: Re: [DNG] New goodies from systemd
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: wirelessduck
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] New goodies from systemd
On Tue, 8 Aug 2023 at 18:29, aitor <aitor_czr@???> wrote:
>
> Hi,
>
> On 8/8/23 5:56, wirelessduck--- via Dng wrote:
>
> I think runit lacks the features to handle "oneshot" services.
> ie. something that runs once on startup and then exits, unlike regular
> daemons where runit will start it up and restart it if it crashes/stops.
>
> Oneshot services are possible in runit because you can run a normally downed service with `sv once`.
> We can find examples of such services in /etc/init.d/networking (ifupdown) or /etc/init.d/x11-common.
> Not really idempotent operations, as opposed to respawns or long running daemons that usually consist
> of some idle loop monitoring signals, file descriptors, etc... via system calls like select, poll,
> epoll an the like.
>
> Cheers,
>
> Aitor.


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. The
run scripts themselves do not define what type of service they are?

Tom