diff options
author | Bob van der Linden <bobvanderlinden@gmail.com> | 2018-12-19 22:40:29 +0100 |
---|---|---|
committer | Bob van der Linden <bobvanderlinden@gmail.com> | 2019-03-24 21:15:28 +0100 |
commit | 34738dea2a6f3e0f2ac963d8d6bd0f0a10e8e56c (patch) | |
tree | 91ea9e7c4c257859375e69e45989e3bcbd65574f /nixos/modules/services/networking/ocserv.nix | |
parent | cc5f08fed83414cfe046dfee8e4f61e8e88398f2 (diff) |
nixos/ocserv: /var/run -> /run
Diffstat (limited to 'nixos/modules/services/networking/ocserv.nix')
-rw-r--r-- | nixos/modules/services/networking/ocserv.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/ocserv.nix b/nixos/modules/services/networking/ocserv.nix index 61473a9fabf90..dc26ffeafeefc 100644 --- a/nixos/modules/services/networking/ocserv.nix +++ b/nixos/modules/services/networking/ocserv.nix @@ -31,7 +31,7 @@ in udp-port = 443 run-as-user = nobody run-as-group = nogroup - socket-file = /var/run/ocserv-socket + socket-file = /run/ocserv-socket server-cert = certs/server-cert.pem server-key = certs/server-key.pem keepalive = 32400 @@ -50,7 +50,7 @@ in rekey-time = 172800 rekey-method = ssl use-occtl = true - pid-file = /var/run/ocserv.pid + pid-file = /run/ocserv.pid device = vpns predictable-ips = true default-domain = example.com @@ -90,8 +90,8 @@ in serviceConfig = { PrivateTmp = true; - PIDFile = "/var/run/ocserv.pid"; - ExecStart = "${pkgs.ocserv}/bin/ocserv --foreground --pid-file /var/run/ocesrv.pid --config /etc/ocserv/ocserv.conf"; + PIDFile = "/run/ocserv.pid"; + ExecStart = "${pkgs.ocserv}/bin/ocserv --foreground --pid-file /run/ocesrv.pid --config /etc/ocserv/ocserv.conf"; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; }; }; |