From 4d363bb2dd8f49c6f9d6626ad92721d092749ca2 Mon Sep 17 00:00:00 2001 From: Walter Kuppens Date: Sun, 1 Dec 2019 13:30:25 -0800 Subject: [PATCH] Added restart policy to systemd unit --- contrib/systemd/lorewalker-cho.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/systemd/lorewalker-cho.service b/contrib/systemd/lorewalker-cho.service index e86fa8f..6a6f855 100644 --- a/contrib/systemd/lorewalker-cho.service +++ b/contrib/systemd/lorewalker-cho.service @@ -5,6 +5,8 @@ Requires=postgresql-11.service [Service] ExecStart=/opt/lorewalker-cho/lorewalker-cho.sh --log /var/log/lorewalker-cho/lorewalker-cho.log +Restart=always +RestartSec=3 User=cho Group=cho