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

node health check: also fix failed networking service

parent beecf594
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
#!/bin/bash
# vim: set noexpandtab:

# Copyright 2014-2020 Holger Levsen <holger@layer-acht.org>
# Copyright 2014-2021 Holger Levsen <holger@layer-acht.org>
#         © 2015-2018 Mattia Rizzolo <mattia@mapreri.org>
# released under the GPLv2

@@ -151,7 +151,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 ; do
	for UNIT in avahi-daemon acpid rtkit-daemon networking ; do
		if [ -n "$(grep $UNIT $SERVICES)" ] ; then
			echo "$(date -u) - restarting failed service $UNIT..."
		        sudo systemctl restart $UNIT