On Sun, 24 Aug 2025 16:45:21 +0100
Patrick O'Callaghan <[email protected]> wrote:

> On Sun, 2025-08-24 at 08:04 -0700, Geoffrey Leach wrote:
> > 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
> > -- No entries 
> > 
> > What's my mistake?  Thanks.  
> 
> Did you run 'sudo systemctl daemon-reload'?
> 
> poc

No, I did not. Running it does not change the situation.
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to