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