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

Ottavio Caruso ottavio2006-usenet2012 at yahoo.com
Mon Jan 13 14:25:14 GMT 2025


I have a script:

$ cat /usr/lib/systemd/system-sleep/custom
#!/bin/sh
case $1 in
    pre)
            ;;
    post)


in which I put instructions on what to do before and after the machine
goes into suspend.

If I were to nuke systemd and move to sysv, how would I handle these events?

Thanks

-- 
Ottavio Caruso



More information about the Debian-init-diversity mailing list