diff options
author | Márton Boros <martonboros@gmail.com> | 2018-04-13 11:38:52 +0200 |
---|---|---|
committer | Márton Boros <martonboros@gmail.com> | 2018-04-13 11:38:52 +0200 |
commit | ec1419bad815fd7ffc54911239f39f3944c2d374 (patch) | |
tree | 3ce28af1776ad42f04272d8eca305e4a664bde01 /nixos | |
parent | d260e95cb9fe5ca16beb2a0ab4b39ef91988cf15 (diff) |
nixos/prosody: fix pidfile path
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/prosody.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/prosody.nix b/nixos/modules/services/networking/prosody.nix index d8084ff2eed90..1b4f81f6b56e0 100644 --- a/nixos/modules/services/networking/prosody.nix +++ b/nixos/modules/services/networking/prosody.nix @@ -439,7 +439,7 @@ in environment.etc."prosody/prosody.cfg.lua".text = '' - pidfile = "${cfg.dataDir}/prosody.pid" + pidfile = "/run/prosody/prosody.pid" log = "*syslog" @@ -509,7 +509,8 @@ in User = cfg.user; Group = cfg.group; Type = "forking"; - PIDFile = "${cfg.dataDir}/prosody.pid"; + RuntimeDirectory = [ "prosody" ]; + PIDFile = "/run/prosody/prosody.pid"; ExecStart = "${cfg.package}/bin/prosodyctl start"; }; }; |