Hi Geoffrey, (see inline reply)
在 2025/8/24 16:04, Geoffrey Leach 写道:
I need to restart a process after suspend As root, I created an executable script in /usr/lib/systemd/system-sleep: case "$1/$2" in pre/*) ;; post/*) echo 'foo' ;; esac On suspend/resume journalctl -u test.sh
It can be the case where the script wass executed as part of other unit(s) like systemd-suspend.service rather than have a unit name on its own? Maybe try
1. doing something with more observable side-effects, e.g. touching a file under /tmp 2. use -g foo to see if anything related appeared in the journal. Best, Qiyu
-- No entries What's my mistake? Thanks.
OpenPGP_signature.asc
Description: OpenPGP digital signature
-- _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue