[Unit] Description=Execute events on resume event StartLimitIntervalSec=0 [Service] Type=simple RestartSec=3 Restart=always SyslogIdentifier=events-resume ExecStart=/usr/bin/env sh -c 'dbus-monitor --system | while read; do grep -q 'PrepareForSleep' && events-resume; done' [Install] WantedBy=default.target