unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: James Thomas <jimjoe@gmx.net>
To: Unstable Horse via <help-guix@gnu.org>
Cc: Unstable Horse <stable.master@unstable.horse>
Subject: Re: How to run a script on system shutdown/reboot
Date: Sat, 01 Jul 2023 14:54:27 +0530	[thread overview]
Message-ID: <87leg0kmr8.fsf@gmx.net> (raw)
In-Reply-To: <0dde05f2e018ed6c1ca6fbfc31bbcb53458c9460.camel@unstable.horse> (Unstable Horse via's message of "Wed, 21 Jun 2023 14:16:50 +0200")

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.

--


  reply	other threads:[~2023-07-01  9:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-21 12:16 How to run a script on system shutdown/reboot Unstable Horse via
2023-07-01  9:24 ` James Thomas [this message]
2023-07-01 10:09   ` Unstable Horse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87leg0kmr8.fsf@gmx.net \
    --to=jimjoe@gmx.net \
    --cc=help-guix@gnu.org \
    --cc=stable.master@unstable.horse \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).