From 54a770f8c83817caa697b9035079ae3af4d248a4 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme <jan.philipp@timme.it> Date: Tue, 9 Mar 2021 08:30:07 +0100 Subject: [PATCH] Fix service unit to do automatic restarts on crashes --- goemaxima.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/goemaxima.service b/goemaxima.service index 7558fec..aa0f00d 100644 --- a/goemaxima.service +++ b/goemaxima.service @@ -5,7 +5,8 @@ Wants=network-online.target After=remote-fs.target [Service] -ExecStartPre=-/usr/bin/docker kill goemaximapool +Restart=on-failure +RestartSec=1s ExecStart=/usr/bin/docker run --rm --name goemaximapool --publish 0.0.0.0:8080:8080 goemaxima:2020120600-dev [Install] -- GitLab