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

node health check: also try to restart failed vnstat service


Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 09fafb8b
No related branches found
No related tags found
No related merge requests found
......@@ -163,7 +163,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 logrotate man-db munin-node dpkg-db-backup ; do
for UNIT in avahi-daemon acpid rtkit-daemon networking systemd-journal-flush haveged e2scrub_all apt-daily apt-daily-upgrade logrotate man-db munin-node dpkg-db-backup vnstat ; do
if grep -q $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