From 64ab5bc9b1be9e6c17e420ef5532c0159008e50e Mon Sep 17 00:00:00 2001 From: Ruben Bosch Date: Mon, 24 Jun 2019 20:13:26 +0200 Subject: [PATCH] Enable systemd service to restart automatically --- templates/systemd.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/systemd.erb b/templates/systemd.erb index acfe616..d7d99d9 100644 --- a/templates/systemd.erb +++ b/templates/systemd.erb @@ -7,6 +7,7 @@ User=<%= @user %> Group=<%= @group %> Type=simple ExecStart=/usr/bin/mono <%= @install_path %>/<%= @executable %> -nobrowser -data <%= @base_path %> +Restart=always TimeoutStopSec=20 [Install]