From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <help-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.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 cIbGELn+l2SlNAAASxT56A
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 25 Jun 2023 10:45:45 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id 8L1fELn+l2TVEwAAauVa8A
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sun, 25 Jun 2023 10:45:45 +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 5560E4919
	for <larch@yhetil.org>; Sun, 25 Jun 2023 10:45:44 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-guix-bounces@gnu.org>)
	id 1qDLNG-0008Kf-LJ; Sun, 25 Jun 2023 04:45:35 -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 <stable.master@unstable.horse>)
 id 1qBwsl-0006a4-LF
 for help-guix@gnu.org; Wed, 21 Jun 2023 08:24:23 -0400
Received: from [140.82.58.198] (helo=unstable.horse)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stable.master@unstable.horse>)
 id 1qBwsi-00043J-SD
 for help-guix@gnu.org; Wed, 21 Jun 2023 08:24:18 -0400
Received: from unstable.horse (localhost [127.0.0.1])
 by unstable.horse (OpenSMTPD) with ESMTP id 1e73f02d
 for <help-guix@gnu.org>; Wed, 21 Jun 2023 12:17:31 +0000 (UTC)
Received: from [192.168.1.8] ([93.86.27.251]) by unstable.horse with ESMTPSA
 id 2lrkEFvqkmRkXwEA+/WzFw
 (envelope-from <stable.master@unstable.horse>)
 for <help-guix@gnu.org>; Wed, 21 Jun 2023 12:17:31 +0000
Message-ID: <0dde05f2e018ed6c1ca6fbfc31bbcb53458c9460.camel@unstable.horse>
Subject: How to run a script on system shutdown/reboot
To: help-guix@gnu.org
Date: Wed, 21 Jun 2023 14:16:50 +0200
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.48.1 (3.48.1-1.module_f38+16663+080ec715) 
MIME-Version: 1.0
X-Host-Lookup-Failed: Reverse DNS lookup failed for 140.82.58.198 (failed)
Received-SPF: pass client-ip=140.82.58.198;
 envelope-from=stable.master@unstable.horse; helo=unstable.horse
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Mailman-Approved-At: Sun, 25 Jun 2023 04:45:33 -0400
X-BeenThere: help-guix@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-guix>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=subscribe>
Reply-to:  Unstable Horse <stable.master@unstable.horse>
From:  Unstable Horse via <help-guix@gnu.org>
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-Seal: i=1; s=key1; d=yhetil.org; t=1687682744; a=rsa-sha256; cv=none;
	b=Zowwb4plgszD090Sbch2bxkGdbEjsEfX6+3eUgAYQfitn3L4NBK/CRNq9VGGuM3QjBVS4X
	7ykRyQEvhPjpT195biBiErZxqFZabmCIcWdq9Ot+djBQKlO+8roTLaUVbuUiC8RrFG6F8I
	FESUgiWPZTg5/KAeGvQgwmR6QM0yFbGN3iH4IG41EjCYTocPBW4CZe/ta6JAqPAGb4G0qp
	oYknFmjUfgXEi7//UjVztwSq1NbS1UFXiUYkcfRgguFbgRu0z4Jm8w0YjY96wbcutwgInO
	X1oS9Jum7N21HMxee8Yp7+auNY/jSH96f9yA+rcBDkcwD4aHvN3C8l4RCoCOJg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=none;
	dmarc=pass (policy=none) header.from=gnu.org;
	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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1687682744;
	h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:list-id:list-help:
	 list-unsubscribe:list-subscribe:list-post;
	bh=9EqSofC9fKsaeND8D0ok7GqZkNgdFrtmn05/+viTkWE=;
	b=WJwAID+l5VCy8bK0woEjQnMAvZ3RTMFnfhFLFndZ+Iwn5IUpI8x5BEHW8zClsgylLSGHVO
	fZ6wFx8PoDWWR8FofAl2pa5f0+zV6pCzS8Km6+TgTkl+AZ1WRLaGS9QLVNmedJ25/85WYN
	jE7rVEnGXjFrfXeUvlDbkKt14EVG33QXCJ3KhnX2QOZRqPKcfpcCIBlhDkmAWRHNC1Royt
	Sl1t5DCFRj2gdrSd/3axMxUIqsSfSj43jK/gXT2+nw1aqG3MuhJ/Qje/PYSXoOcnb1jt4O
	SdGRXTsPMGbR2laoIGFzIgeR1ImG7v7I7ZhXpiYEZJYmHk+grEFtvaCDQb+Dfw==
Authentication-Results: aspmx1.migadu.com;
	dkim=none;
	dmarc=pass (policy=none) header.from=gnu.org;
	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-Scanner: scn0.migadu.com
X-Migadu-Spam-Score: -2.15
X-Spam-Score: -2.15
X-Migadu-Queue-Id: 5560E4919
X-TUID: U71E9bbl7dfd

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.

Can I somehow configure this from my system-wide config.scm? Or any way
at all, if that's not an option?

My particular use-case is unloading a faulty kernel module, that
prevents powering off the laptop right before shepherd actually tries
to shut it down.