Re: s6-rc: oneshot services do not get their name as arg 1

From: Paul Sopka <psopka_at_sopka.ch>
Date: Sun, 3 Nov 2024 23:16:56 +0100

Thank you for the quick reply!

>  There would be no benefit to doing that, because oneshots do not have
> instances, so any up or down script knows exactly what service it is
> starting or stopping.
I could think of one benefit:

Symlinking the oneshot service directory with other names,
e.g. having a oneshot script for setting up the network
and symlinking it for different interfaces, so that a change
does not have to be made in all the copied scripts
(of course its unlikely to have enough interfaces
to justify this, but it conveys the idea).

Regards

Paul

Received on Sun Nov 03 2024 - 23:16:56 CET

This archive was generated by hypermail 2.4.0 : Sun Nov 03 2024 - 23:17:29 CET