#745848 systemctl suspend fails to run standard configuration scripts in /etc/pm/

#745848#5
Date:
2014-04-25 18:55:00 UTC
From:
To:
Dear Maintainer,

as far as I understood system configuration until recently,
/etc/pm/*.d were the canonical places to put scripts one wants to run
on suspend and resume.

E.g. the manpage for pm-suspend says:

FILES
       /etc/pm/sleep.d, /usr/lib/pm-utils/sleep.d
           Programs in these directories (called hooks) are combined
           and executed in C sort order before suspend and hibernate
           with as argument 'suspend' or 'hibernate'. Afterwards they
           are called in reverse order with argument 'resume' and
           'thaw' respectively. If both directories contain a similar
           named file, the one in /etc/pm/sleep.d will get
           preference. It is possible to disable a hook in the
           distribution directory by putting a non-executable file in
           /etc/pm/sleep.d, or by adding it to the HOOK_BLACKLIST
           configuration variable.

Unfortunately, it seems as if running "systemctl suspend" to suspend
the system does not cause these scripts to be run, neither on suspend
nor on resume. There also seems to be no configuration option
documented to enable running of these scripts.

Are there plans to become compatible with pm-utils on the systemd side
(somewhat necessary if systemd is truly supposed to be a drop-in
replacement) or are people expected to reconfigure their system? If
so, would it be possible to clearly document the suggested way to do
so? systemd-suspend.service(8) mentions /usr/lib/systemd/system-sleep/
which is a) "intended for local use only and should be considered [a]
hack" and b) in /usr rather than /etc.

Best regards,

Claudius

#745848#10
Date:
2014-04-26 11:24:48 UTC
From:
To:
control: reassign -1 pm-utils

Hi Claudius,

Claudius Hubig <debian_1404@chubig.net> writes:
The current plan of the pm-utils maintainers is to ship a little script
in /usr/lib/systemd/system-sleep/ in the pm-utils package that will
integrate pm-utils with systemd.

#745848#19
Date:
2023-12-21 17:56:09 UTC
From:
To:
Dear submitter,

as the package pm-utils has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1058701

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)