* [Shepherd] Shutdown and reboot entries in utmp?
@ 2024-11-12 6:16 Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-11-14 10:56 ` Ludovic Courtès
2024-11-14 10:56 ` Ludovic Courtès
0 siblings, 2 replies; 3+ messages in thread
From: Felix Lechner via Development of GNU Guix and the GNU System distribution. @ 2024-11-12 6:16 UTC (permalink / raw)
To: guix-devel
Hi,
Does the GNU Shepherd add entries for shutdowns and reboots to utmp? [1]
Kind regards
Felix
P.S. I'd like to teach guile-pam some new tricks.
[1] https://man7.org/linux/man-pages/man8/systemd-update-utmp.service.8.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Shepherd] Shutdown and reboot entries in utmp?
2024-11-12 6:16 [Shepherd] Shutdown and reboot entries in utmp? Felix Lechner via Development of GNU Guix and the GNU System distribution.
@ 2024-11-14 10:56 ` Ludovic Courtès
2024-11-14 10:56 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2024-11-14 10:56 UTC (permalink / raw)
To: Felix Lechner via Development of GNU Guix and the GNU System distribution.
Cc: Felix Lechner
Hi,
Felix Lechner via "Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org> skribis:
> Does the GNU Shepherd add entries for shutdowns and reboots to utmp? [1]
Nope!
This could be done in the start/stop methods of ‘user-processes’ in (gnu
services base) using the utmpx procedures from (guix build syscalls).
Eventually it would be nice to move utmp support in the Shepherd proper,
but that entails a bit of code churn (having the utmp API available from
Shepherd, etc.).
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Shepherd] Shutdown and reboot entries in utmp?
2024-11-12 6:16 [Shepherd] Shutdown and reboot entries in utmp? Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-11-14 10:56 ` Ludovic Courtès
@ 2024-11-14 10:56 ` Ludovic Courtès
1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2024-11-14 10:56 UTC (permalink / raw)
To: Felix Lechner via Development of GNU Guix and the GNU System distribution.
Cc: Felix Lechner
Hi,
Felix Lechner via "Development of GNU Guix and the GNU System
distribution." <guix-devel@gnu.org> skribis:
> Does the GNU Shepherd add entries for shutdowns and reboots to utmp? [1]
Nope!
This could be done in the start/stop methods of ‘user-processes’ in (gnu
services base) using the utmpx procedures from (guix build syscalls).
Eventually it would be nice to move utmp support in the Shepherd proper,
but that entails a bit of code churn (having the utmp API available from
Shepherd, etc.).
HTH,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-14 10:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-12 6:16 [Shepherd] Shutdown and reboot entries in utmp? Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-11-14 10:56 ` Ludovic Courtès
2024-11-14 10:56 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).