From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from alyss.skarnet.org (alyss.skarnet.org [95.142.172.232]) by inbox.vuxu.org (Postfix) with SMTP id EB5092B01F for ; Sun, 3 Nov 2024 22:57:34 +0100 (CET) Received: (qmail 58105 invoked by uid 89); 3 Nov 2024 21:58:00 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 58098 invoked from network); 3 Nov 2024 21:57:59 -0000 From: "Laurent Bercot" To: "supervision@list.skarnet.org" Subject: Re: s6-rc: oneshot services do not get their name as arg 1 Date: Sun, 03 Nov 2024 21:57:32 +0000 Message-Id: In-Reply-To: <1d5e61fc-807f-48d8-8721-1194f3a5338a@sopka.ch> References: <1d5e61fc-807f-48d8-8721-1194f3a5338a@sopka.ch> Reply-To: "Laurent Bercot" User-Agent: eM_Client/10.0.3530.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable >I am wondering why oneshot services do not get their names passed as argum= ent 1, while longruns do. >Is there a reason for that? If yes, what is it? If not, will this be added= ? Longruns being passed their names as argument is a recent addition: it was useful to implement dynamic instances in s6. It's a pure s6 feature, not an s6-rc one; it just so happens that a longrun's name in s6-rc translates to the service directory's name in s6. Oneshots aren't being handled by s6, so they did not benefit from that change. They're only run at the s6-rc level, and s6-rc does not pass service names as arguments. 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. -- Laurent