unofficial mirror of help-guix@gnu.org 
 help / color / mirror / 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).