From c0e446d6d939ca98b415eb773ad6890cc87c9095 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Tue, 7 Jan 2025 09:54:46 +0100 Subject: [PATCH] Update systemd script --- cpolis.service | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cpolis.service b/cpolis.service index 0ccc66a..347608d 100644 --- a/cpolis.service +++ b/cpolis.service @@ -1,9 +1,14 @@ [Unit] Description=cpolis +After=network.target [Service] ExecStart=/usr/local/bin/cpolis -Restart=on-failure +User=cpolis +Group=cpolis +Restart=always +RestartSec=2s +Type=simple [Install] -WantedBy=default.target +WantedBy=multi-user.target