From c7b592111eb915cc91cc391bfd5ce319f163a28c Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Sun, 19 Jan 2025 08:03:58 -0800 Subject: [PATCH] systemd: support systemctl reload diod Problem: diod supports runtime configuration reloading but the systemd unit file doesn't. Arrange to send SIGHUP to diod when an admin runs systemctl reload diod. --- etc/diod.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/diod.service.in b/etc/diod.service.in index 7acb8044..bf71a8b5 100644 --- a/etc/diod.service.in +++ b/etc/diod.service.in @@ -4,6 +4,7 @@ Description=9P File Server [Service] Type=exec ExecStart=@X_SBINDIR@/diod +ExecReload=kill -HUP $MAINPID [Install] WantedBy=multi-user.target