Also systemctl reset-failed failed session-nnn.scope
authorPeter Palfrader <peter@palfrader.org>
Sun, 11 Feb 2018 10:02:25 +0000 (11:02 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sun, 11 Feb 2018 10:02:25 +0000 (11:02 +0100)
modules/systemd/files/systemd-cleanup-failed

index 5cde92b..0115f93 100755 (executable)
@@ -9,7 +9,8 @@
 
 systemctl --failed --no-legend | awk '{print $1}' | \
     while read service; do
-    if [[ $service =~ ^rsyncd-[a-z]*@.*\.service$ ]]; then
+    if [[ $service =~ ^rsyncd-[a-z]*@.*\.service$ ]] ||
+       [[ $service =~ ^session-[0-9]+\.scope$ ]]; then
         systemctl reset-failed "$service"
     fi
 done