all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to run a script on system shutdown/reboot
@ 2023-06-21 12:16 Unstable Horse via
  2023-07-01  9:24 ` James Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Unstable Horse via @ 2023-06-21 12:16 UTC (permalink / raw)
  To: help-guix

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-02 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-21 12:16 How to run a script on system shutdown/reboot Unstable Horse via
2023-07-01  9:24 ` James Thomas
2023-07-01 10:09   ` Unstable Horse

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.