summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-09-09 15:15:22 +0200
committermakefu <github@syntax-fehler.de>2015-09-09 15:15:22 +0200
commit2281516e57c6f9a34c4711184b5b19d83d47dc68 (patch)
tree504ada215026a6f59399c7ea6a6db4d6a2f44dd6 /krebs/3modules
parentd6d9956abc60548c755d30e6a5bd13c10abbb181 (diff)
retiolum.nix: fix pidfile name
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/retiolum.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/3modules/retiolum.nix b/krebs/3modules/retiolum.nix
index 4e70b78aa..2617644d9 100644
--- a/krebs/3modules/retiolum.nix
+++ b/krebs/3modules/retiolum.nix
@@ -105,7 +105,7 @@ let
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = [ tinc iproute ];
- serviceConfig = {
+ serviceConfig = rec {
PermissionsStartOnly = "true";
PrivateTmp = "true";
Restart = "always";
@@ -115,7 +115,7 @@ let
#! /bin/sh
install -o ${user.name} -m 0400 ${cfg.privateKeyFile} /tmp/retiolum-rsa_key.priv
'';
- ExecStart = "${tinc}/sbin/tincd -c ${confDir} -d 0 -U ${user.name} -D";
+ ExecStart = "${tinc}/sbin/tincd -c ${confDir} -d 0 -U ${user.name} -D --pidfile=/var/run/tinc.${SyslogIdentifier}.pid";
SyslogIdentifier = "retiolum";
};
};