[plasma/powerdevil] daemon: Make powerdevil always restart on exit

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit b77c4fb40d76210982347fd7502f60f2ed360b1b by Nate Graham, on behalf of Friso Smit.
Committed on 21/07/2026 at 13:51.
Pushed by ngraham into branch 'master'.

Make powerdevil always restart on exit

I some scenarios when plasma crashes, powerdevil can be killed with a
signal. The current service config does not restart in this scenario.

This commit makes the service restart after a signal, but not after a
watchdog timeout. See the systemd docs:
https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html?#Restart=

ENHANCEMENT: 523101
FIXED-IN: 6.8.0

M  +1    -1    daemon/plasma-powerdevil.service.in

https://invent.kde.org/plasma/powerdevil/-/commit/b77c4fb40d76210982347fd7502f60f2ed360b1b

diff --git a/daemon/plasma-powerdevil.service.in b/daemon/plasma-powerdevil.service.in
index cc5c6ea85..fa103f083 100644
--- a/daemon/plasma-powerdevil.service.in
+++ b/daemon/plasma-powerdevil.service.in
@@ -13,4 +13,4 @@ Type=dbus
 BusName=org.kde.Solid.PowerManagement
 TimeoutStopSec=5sec
 Slice=background.slice
-Restart=on-failure
+Restart=always
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.