From 7a577a65b0f092f4fe47b2d9ab7d4b9a64fcebec Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 11 Feb 2018 11:02:25 +0100 Subject: [PATCH] Also systemctl reset-failed failed session-nnn.scope --- modules/systemd/files/systemd-cleanup-failed | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/systemd/files/systemd-cleanup-failed b/modules/systemd/files/systemd-cleanup-failed index 5cde92b45..0115f93b6 100755 --- a/modules/systemd/files/systemd-cleanup-failed +++ b/modules/systemd/files/systemd-cleanup-failed @@ -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 -- 2.20.1