mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixos/ergochat: Use Type=notify-reload
The ergochat server has supported this for a long time, so use it instead of a full restart every time.
This commit is contained in:
parent
69e9eaf80b
commit
2a2b630d21
1 changed files with 2 additions and 6 deletions
|
|
@ -145,14 +145,10 @@ in
|
|||
systemd.services.ergochat = {
|
||||
description = "Ergo IRC daemon";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
# reload is not applying the changed config. further investigation is needed
|
||||
# at some point this should be enabled, since we don't want to restart for
|
||||
# every config change
|
||||
# reloadIfChanged = true;
|
||||
restartTriggers = [ cfg.configFile ];
|
||||
reloadTriggers = [ cfg.configFile ];
|
||||
serviceConfig = {
|
||||
Type = "notify-reload";
|
||||
ExecStart = "${pkgs.ergochat}/bin/ergo run --conf /etc/ergo.yaml";
|
||||
ExecReload = "${pkgs.util-linux}/bin/kill -HUP $MAINPID";
|
||||
DynamicUser = true;
|
||||
StateDirectory = "ergo";
|
||||
LimitNOFILE = toString cfg.openFilesLimit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue