diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-19 20:19:11 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-19 20:19:11 +0200 |
commit | 21ecc70ccd4aee8bf25183837dc3276a4f51e934 (patch) | |
tree | a00fc3cd717a2d4163a41ff19638091076874a73 | |
parent | 0741e5b591141e826c87e1aaa89b8e3fc2ec2565 (diff) | |
download | upower-21ecc70ccd4aee8bf25183837dc3276a4f51e934.tar.gz |
daemon: Restart upowerd when it crashes
When UPower crashes, we would never notice the battery going flat
because UPower clients aren't polling UPower, so won't autostart it.
Instead we rely on systemd to restart us when we crash. libupower-glib
also supports the client coming and going.
https://bugzilla.gnome.org/show_bug.cgi?id=682912
-rw-r--r-- | src/upower.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upower.service.in b/src/upower.service.in index e74be67..0ddaa8a 100644 --- a/src/upower.service.in +++ b/src/upower.service.in @@ -6,6 +6,7 @@ Documentation=man:upowerd(8) Type=dbus BusName=org.freedesktop.UPower ExecStart=@libexecdir@/upowerd +Restart=on-failure [Install] # We pull this in by graphical.target instead of waiting for the bus |