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";