wider regex for clearing failed rsyncd service to catch rsyncd-snapshot-farm@
authorPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 07:46:12 +0000 (09:46 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 07:46:12 +0000 (09:46 +0200)
modules/systemd/files/systemd-cleanup-failed

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