On 08.12.2013, Greg Woods wrote: 

> I am trying to find a way to get a service to restart when the system is
> resumed from suspend or hibernation.

You can place a script in /usr/lib/systemd/system-sleep like
this. Replace <placeholder> with your own script you want to have
executed when the system is waking up.

#!/bin/sh
case $1/$2 in
  pre/*)
    echo "Going to $2..."
    ;;
  post/*)
    echo "Waking up from $2..."
    <placeholder>
    ;;
esac

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to