nixos/ocserv: /var/run -> /run

This commit is contained in:
Bob van der Linden 2018-12-19 22:40:29 +01:00
parent cc5f08fed8
commit 34738dea2a
No known key found for this signature in database
GPG Key ID: 2A90361F99CF1795

View File

@ -31,7 +31,7 @@ in
udp-port = 443 udp-port = 443
run-as-user = nobody run-as-user = nobody
run-as-group = nogroup run-as-group = nogroup
socket-file = /var/run/ocserv-socket socket-file = /run/ocserv-socket
server-cert = certs/server-cert.pem server-cert = certs/server-cert.pem
server-key = certs/server-key.pem server-key = certs/server-key.pem
keepalive = 32400 keepalive = 32400
@ -50,7 +50,7 @@ in
rekey-time = 172800 rekey-time = 172800
rekey-method = ssl rekey-method = ssl
use-occtl = true use-occtl = true
pid-file = /var/run/ocserv.pid pid-file = /run/ocserv.pid
device = vpns device = vpns
predictable-ips = true predictable-ips = true
default-domain = example.com default-domain = example.com
@ -90,8 +90,8 @@ in
serviceConfig = { serviceConfig = {
PrivateTmp = true; PrivateTmp = true;
PIDFile = "/var/run/ocserv.pid"; PIDFile = "/run/ocserv.pid";
ExecStart = "${pkgs.ocserv}/bin/ocserv --foreground --pid-file /var/run/ocesrv.pid --config /etc/ocserv/ocserv.conf"; ExecStart = "${pkgs.ocserv}/bin/ocserv --foreground --pid-file /run/ocesrv.pid --config /etc/ocserv/ocserv.conf";
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
}; };
}; };