Skip to content
Snippets Groups Projects
Commit ac45dd4c authored by Holger Levsen's avatar Holger Levsen
Browse files

node health check: also fix failed networking service

parent beecf594
No related branches found
No related tags found
No related merge requests found
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment