From d400feadf3e3d4064202e2e2377c2875e6cc3a9e Mon Sep 17 00:00:00 2001 From: Waldek Date: Thu, 31 Dec 2020 15:27:30 +0100 Subject: [PATCH] Add files via upload --- utils/hbmon.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 utils/hbmon.service diff --git a/utils/hbmon.service b/utils/hbmon.service new file mode 100644 index 0000000..15faa19 --- /dev/null +++ b/utils/hbmon.service @@ -0,0 +1,17 @@ +[Unit] +Description=HBMonitor +# To make the network-online.target available +# systemctl enable systemd-networkd-wait-online.service + +After=network-online.target syslog.target +Wants=network-online.target + +[Service] +StandardOutput=null +WorkingDirectory=/opt/HBMonv2 +RestartSec=3 +ExecStart=/usr/bin/python3 /opt/HBMonv2/monitor.py +Restart=on-abort + +[Install] +WantedBy=multi-user.target