From: Peter Palfrader Date: Sun, 11 Feb 2018 10:02:25 +0000 (+0100) Subject: Also systemctl reset-failed failed session-nnn.scope X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7a577a65b0f092f4fe47b2d9ab7d4b9a64fcebec;p=mirror%2Fdsa-puppet.git Also systemctl reset-failed failed session-nnn.scope --- 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