Commit b6e16d39 authored by Holger Levsen's avatar Holger Levsen
Browse files

node health check: also fix failed logrotate and man-db services

parent 017f92eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ if ! systemctl is-system-running > /dev/null; then
	echo "$(date -u) - problematic services found:"
	cat $SERVICES
	echo "$(date -u) - trying to fix problematic services."
	for UNIT in avahi-daemon acpid rtkit-daemon networking systemd-journal-flush haveged e2scrub_all apt-daily apt-daily-upgrade ; do
	for UNIT in avahi-daemon acpid rtkit-daemon networking systemd-journal-flush haveged e2scrub_all apt-daily apt-daily-upgrade logrotate man-db; do
		if [ -n "$(grep $UNIT $SERVICES)" ] ; then
			echo "$(date -u) - restarting failed service $UNIT..."
		        sudo systemctl restart $UNIT