[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74819: [PATCH v4] services: elogind: Support Hook Directories
From: |
Ludovic Courtès |
Subject: |
bug#74819: [PATCH v4] services: elogind: Support Hook Directories |
Date: |
Mon, 30 Dec 2024 12:26:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello,
45mg <45mg.writes@gmail.com> skribis:
> Allow the user to specify scripts to be added into Elogind's hook
> directories. These scripts will be run before/after
> suspend/hibernate/poweroff/reboot.
>
> Also allow setting the associated config options.
>
> * gnu/services/desktop.scm (elogind-configuration): add
> `system-sleep-hook-files`, `system-shutdown-hook-files`,
> and 4 new config options.
> (elogind-configuration-file): Add entries for the new config options
> under the `[Sleep]` section.
> (/etc/elogind): New function, to generate /etc/elogind directory.
> (elogind-service-type): Extend `etc-service-type` using `/etc/elogind`.
> * doc/guix.texi: Document the new options.
>
> Change-Id: I7e22cbaa9d031049b9d085ba0ce4cc8a8b4f16ff
I integrated the cosmetic changes Maxim proposed, tweaked the commit log
to better match our conventions, and applied it.
Thanks!
Ludo’.