nix/module: use Type=notify-reload

This commit is contained in:
2026-01-12 16:25:36 +09:00
parent 4f1030f1d8
commit a141e97beb

View File

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