aboutsummaryrefslogtreecommitdiff
path: root/.config/systemd/user/events-resume.service
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2022-01-17 19:45:01 -0500
committertdro <tdro@users.noreply.github.com>2022-01-17 19:45:01 -0500
commitd13a2fd835b6273fb6d654a6bacc65d360f0ce19 (patch)
treee660955333ac1bab0fc66c6be14c890e9186fa81 /.config/systemd/user/events-resume.service
parent5be8c5a1f78f2d7d0cf79c64c82772ce63ffd156 (diff)
downloaddotfiles-d13a2fd835b6273fb6d654a6bacc65d360f0ce19.tar.gz
dotfiles-d13a2fd835b6273fb6d654a6bacc65d360f0ce19.tar.bz2
dotfiles-d13a2fd835b6273fb6d654a6bacc65d360f0ce19.zip
.config/systemd: Cleanup user services
Fail loudly on failure for some units.
Diffstat (limited to '.config/systemd/user/events-resume.service')
-rw-r--r--.config/systemd/user/events-resume.service6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/systemd/user/events-resume.service b/.config/systemd/user/events-resume.service
index b8bce6a..98724d0 100644
--- a/.config/systemd/user/events-resume.service
+++ b/.config/systemd/user/events-resume.service
@@ -1,12 +1,14 @@
[Unit]
Description=Execute events on resume event
+StartLimitBurst=5
+StartLimitIntervalSec=600
[Service]
Type=simple
-ExecStart=/usr/bin/env sh -c 'dbus-monitor --system | while read; do grep -q 'PrepareForSleep' && %h/.local/bin/scripts/events-resume; done'
+RestartSec=3
Restart=always
-RestartSec=5s
SyslogIdentifier=events-resume
+ExecStart=/usr/bin/env sh -c 'dbus-monitor --system | while read; do grep -q 'PrepareForSleep' && %h/.local/bin/scripts/events-resume; done'
[Install]
WantedBy=default.target