blob: a65c0a8ad0be55f1da3d36c94fd4eb91b934d345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
[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
|