From 2e20c6a3473c5f0c6d89aef095b082ee29237a0c Mon Sep 17 00:00:00 2001 From: Mates Vrba Date: Mon, 3 Jun 2024 15:17:07 +0200 Subject: [PATCH] Feat: add support for systemd reload Adding `ExecReload` to systemd's service file allows users to reload config using `systemctl reload endlessh` --- util/endlessh.service | 1 + 1 file changed, 1 insertion(+) diff --git a/util/endlessh.service b/util/endlessh.service index fd12a00..a577de9 100644 --- a/util/endlessh.service +++ b/util/endlessh.service @@ -8,6 +8,7 @@ Type=simple Restart=always RestartSec=30sec ExecStart=/usr/local/bin/endlessh +ExecReload=kill -s SIGHUP $MAINPID KillSignal=SIGTERM # Stop trying to restart the service if it restarts too many times in a row