From 3008836feeed905908027c0d36340bc4b64246f5 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 12 Apr 2016 01:04:34 +0200 Subject: [PATCH] nixos/taskserver: Add a command to reload service Unfortunately we don't have a better way to check whether the reload has been done successfully, but at least we now *can* reload it without figuring out the exact signal to send to the process. Note that on reload, Taskserver will not reload the CRL file. For that to work, a full restart needs to be done. Signed-off-by: aszlig --- nixos/modules/services/misc/taskserver/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index e2a2b896ec6a..3a53431939bc 100644 --- a/nixos/modules/services/misc/taskserver/default.nix +++ b/nixos/modules/services/misc/taskserver/default.nix @@ -454,6 +454,7 @@ in { serviceConfig = { ExecStart = "@${taskd} taskd server"; + ExecReload = "${pkgs.coreutils}/bin/kill -USR1 $MAINPID"; PermissionsStartOnly = true; User = cfg.user; Group = cfg.group;