+++ /dev/null
-#!/bin/bash
-
-# if a client goes away on socket activated connections before systemd launches
-# the process, things go sad and result in failed services.
-#
-# cf. https://github.com/systemd/systemd/issues/7172
-#
-# should be fixed in buster and newer, but for now clean those up.
-
-systemctl --failed --no-legend | awk '{print $1}' | \
- while read service; do
- if [[ $service =~ ^rsyncd-[a-z]*@.*\.service$ ]]; then
- systemctl reset-failed "$service"
- fi
-done
}
file { '/usr/local/sbin/systemd-cleanup-failed-rsyncs':
- source => 'puppet:///modules/rsync/systemd-cleanup-failed-rsyncs',
- mode => '0555',
- }
- file { '/etc/cron.d/puppet-crazy-multipath-restart': ensure => absent, }
- concat::fragment { 'dsa-puppet-stuff--systemd-cleanup-failed-rsyncs':
- target => '/etc/cron.d/dsa-puppet-stuff',
- content => @("EOF"),
- */10 * * * * root /usr/local/sbin/systemd-cleanup-failed-rsyncs
- | EOF
+ ensure => absent,
}
}
--- /dev/null
+#!/bin/bash
+
+# if a client goes away on socket activated connections before systemd launches
+# the process, things go sad and result in failed services.
+#
+# cf. https://github.com/systemd/systemd/issues/7172
+#
+# should be fixed in buster and newer, but for now clean those up.
+
+systemctl --failed --no-legend | awk '{print $1}' | \
+ while read service; do
+ if [[ $service =~ ^rsyncd-[a-z]*@.*\.service$ ]]; then
+ systemctl reset-failed "$service"
+ fi
+done
}
}
+ file { '/usr/local/sbin/systemd-cleanup-failed':
+ source => 'puppet:///modules/systemd/systemd-cleanup-failed',
+ mode => '0555',
+ }
+ concat::fragment { 'dsa-puppet-stuff--systemd-cleanup-failed':
+ target => '/etc/cron.d/dsa-puppet-stuff',
+ content => @("EOF"),
+ */10 * * * * root /usr/local/sbin/systemd-cleanup-failed
+ | EOF
+ }
}