From 5141e89bed11df558d8006ebd2441d5559caa74a Mon Sep 17 00:00:00 2001 From: 8cH9azbsFifZ Date: Sun, 2 Jan 2022 22:20:36 +0100 Subject: [PATCH] autorestart --- ble/moonboard_ble.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ble/moonboard_ble.service b/ble/moonboard_ble.service index c190f9e..31d2933 100755 --- a/ble/moonboard_ble.service +++ b/ble/moonboard_ble.service @@ -7,6 +7,8 @@ WorkingDirectory=/home/pi/moonboard/ble/ ExecStart=/usr/bin/python3 /home/pi/moonboard/ble/moonboard_ble_service.py Type=idle User=root +Restart=on-failure +RestartSec=5s StandardOutput=file:/var/log/moonboard_ble_stdout.log StandardError=file:/var/log/moonboard_ble_stderr.log