How does sysv handle pre- post- suspend scripts vs systemd ?

Lorenzo plorenzo at disroot.org
Tue Jan 14 06:27:20 GMT 2025


Hi,

On Mon, 13 Jan 2025 14:25:14 +0000
Ottavio Caruso <ottavio2006-usenet2012 at yahoo.com> wrote:

> I have a script:
> 
> $ cat /usr/lib/systemd/system-sleep/custom
> #!/bin/sh
> case $1 in
>     pre)
>             ;;
>     post)
> 

you can probably do that with elogind, if it's installed in you machine:
https://wiki.gentoo.org/wiki/Elogind#Suspend.2FHibernate_Resume.2FThaw_hook_scripts

Lorenzo





More information about the Debian-init-diversity mailing list