From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oHMkEwDxn2Q+cwEASxT56A (envelope-from ) for ; Sat, 01 Jul 2023 11:25:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yPsuEgDxn2T3jAAAG6o9tA (envelope-from ) for ; Sat, 01 Jul 2023 11:25:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CB8F12AAA for ; Sat, 1 Jul 2023 11:25:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFWqL-0000FX-VN; Sat, 01 Jul 2023 05:24:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFWqL-0000FO-8x for help-guix@gnu.org; Sat, 01 Jul 2023 05:24:37 -0400 Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFWqJ-0000Yb-MO for help-guix@gnu.org; Sat, 01 Jul 2023 05:24:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1688203472; x=1688808272; i=jimjoe@gmx.net; bh=f17IZ4m+tqQ2BXHafQIKD1uVEqkAzgMjHsjOvRS/GBU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=bBzFOKHHHS9lOixFKRsc6T7Aqwpxig+pUV4OGkffsrkJQHuuqOp13GyYFDzDQ7rTEZ1H7bw DqgGZ4xCCxIfu0YRHophG6pBNBSEY7om1RkYDPFwVEpYwcRahZ3945JoOjvkXqzoBl7aNlxKS c3ad8qQDYTxklCBt0qS1E4unnlE12GTBLzJVzNDmCn+s4tmedy74HK9JIdKlFS0oBCoFIj1O3 aXvbckiRwUPrWoEqj3JYT7X9FJhjVUHze+O+pLXnDqd0qQxD0E4N6zaPXmH1gPkJowh5tQj3G Wf24/MiHMx+U5+GQhlZTv4Qivvuz9jUBa51jUTnPynsK8YASzJMg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from user-Inspiron-15-5518 ([59.92.165.60]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M3UZG-1qEysP1Tpy-000buu; Sat, 01 Jul 2023 11:24:31 +0200 From: James Thomas To: Unstable Horse via Cc: Unstable Horse Subject: Re: How to run a script on system shutdown/reboot In-Reply-To: <0dde05f2e018ed6c1ca6fbfc31bbcb53458c9460.camel@unstable.horse> (Unstable Horse via's message of "Wed, 21 Jun 2023 14:16:50 +0200") References: <0dde05f2e018ed6c1ca6fbfc31bbcb53458c9460.camel@unstable.horse> Date: Sat, 01 Jul 2023 14:54:27 +0530 Message-ID: <87leg0kmr8.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:f6bJYCt0xZPfAlorgHneMvg/rmMijP2Hun7CX7Td27j02KcmDtN bIdE3nchsB2BbB8NtDBJHp21HESznGxyLufF5jF3QVlhRz1Tgc6bo0pUgDXRwa8KjARMT+m BVosxP5tsbb1hzHGm0CzIBvRi+GbZIMq0AbYY8KrQnCnLi2EMw4+RJzpg8ckpevH5lQz5Eu 7PuKUrjhRNmuBC1xu1Yzg== UI-OutboundReport: notjunk:1;M01:P0:2j87g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mx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1688203520; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=f17IZ4m+tqQ2BXHafQIKD1uVEqkAzgMjHsjOvRS/GBU=; b=FOps14TJFsyVduOxctz2wxKzzzfvTgn1FtKaXrlNECXPJ827ubb7to0mClEUHb9LUlP0zD GXjcYioyXbPPOkL7Ma6Idk7y71CujwGjUR6mJ0kQ2QCepGAfP8CNkaVBCgUO8rvvp/C+v9 rw7TiZ8LuP+qhfhJq9wcIp4tBCMafRyWAXZdBI/2dVk3J9zO5iLAMazPfEQncaOwo1ZG3y kjpIS5DKNZpNi+Lac7r1VapUiYqViYh+MJUqjgG9IsykbkcNe0ViC+a0Y4gBu0lPal4Jso xQwdDUgKQhbtZs2f6qXWvBhzo78Ggzo0RZ6gMkOik9cvkH7OoMWYFmX4ITgyNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=bBzFOKHH; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1688203520; a=rsa-sha256; cv=none; b=iQWAj99X/SQS74kSbL5GecmjdGfam9hUxx1sJL1CfkERraMAQqGdBzfiS1mFyTCSRHpXmi +zbztNozcuS86BCDlfcZKU8vE1S3LMAntmlZmqkTSdumaT/TQWPHRikW0SXoLSQzLjM2hy 8WeACM8ejixC7g7zTTkF8MFgoTYUf3oSofI6WO5Qr3SLKdOL3j00iVPvQZmjU8JAZ/ZZj8 xk2KKRc6o/xoKEOLarA9/zgJOa87MjaS3FoGeLVxyAt/UsDxu8unZMU7QtqrXb+lvJPlPL Fk4X089TCK5Xz16SAN+ynRxHdYyEv8CApWBVMlv6q2TVU7SmeFLuyUVcrUqYTQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=s31663417 header.b=bBzFOKHH; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: CB8F12AAA X-Spam-Score: -3.64 X-TUID: oU09cj/BDBsw Unstable Horse via wrote: > Good day, people. I am browsing the shepherd's info docs, and I can't > seem to find a way to run something right after either reboot, or halt > were invoked. > > Something that is usually achieved by sticking a script into /etc/rc0.d > in classical init systems, or /usr/lib/systemd/system-shutdown in > systemd. What I'd gleaned when I looked into this a while ago: These functions are in elogind, whose hook directories are: (PKGSYSCONFDIR = PREFIX/etc/elogind)/system-shutdown (rootlibexecdir = (rootprefixdir = PREFIX)/lib/elogind)/system-shutdown As of then both these directories pointed to the store build. I remember trying to figure out whether to patch the package definition or elogind itself, before I moved on to other things. --