From 294bd80cc7c89f79f59a2a00dea5f99f7eea743c Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Thu, 29 Jul 2021 09:46:33 +0100 Subject: [PATCH] Update service file to restart on app crash --- gohookr.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gohookr.service b/gohookr.service index bf831a8..e7636c2 100644 --- a/gohookr.service +++ b/gohookr.service @@ -3,6 +3,8 @@ Description=A really simple webhook receiver. After=network.target [Service] +Restart=on-failure +RestartSec=5s ExecStart=/usr/local/bin/gohookr [Install]