From a141e97bebf8e18b94baad8ee0ec2e5b3384ad13 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 12 Jan 2026 16:25:36 +0900 Subject: [PATCH] nix/module: use `Type=notify-reload` --- nix/module.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nix/module.nix b/nix/module.nix index 4c43a00..170e3c1 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -155,15 +155,14 @@ in systemd.services."muscl" = { reloadTriggers = [ config.environment.etc."muscl/config.toml".source ]; serviceConfig = { + Type = "notify-reload"; ExecStart = [ "" "${lib.getExe' cfg.package "muscl-server"} ${cfg.logLevel} --systemd --disable-landlock socket-activate" ]; - ExecReload = [ - "" - "${lib.getExe' pkgs.coreutils "kill"} -HUP $MAINPID" - ]; + ExecReload = ""; + ReloadSignal = "SIGHUP"; RuntimeDirectory = "muscl/root-mnt"; RuntimeDirectoryMode = "0700";