diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-04-12 01:04:34 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-04-12 01:04:34 +0200 |
commit | 3008836feeed905908027c0d36340bc4b64246f5 (patch) | |
tree | b28556ef99d7a7c8445c5603d432dc086ebad46c /nixos/modules/services/misc/taskserver/default.nix | |
parent | b6643102d61b466b0395c8f89eab3acfc2c2438d (diff) |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/modules/services/misc/taskserver/default.nix')
-rw-r--r-- | nixos/modules/services/misc/taskserver/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/taskserver/default.nix b/nixos/modules/services/misc/taskserver/default.nix index e2a2b896ec6a9..3a53431939bcb 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; |