3
0
Fork 0
forked from mirrors/nixpkgs

nixos/tinc: remove useless script argument

ExecStart is sufficient and more transparent to the user.
This commit is contained in:
Joerg Thalheim 2017-09-27 16:02:23 +01:00 committed by Robin Gloster
parent ad8cb0917f
commit 75ba415fbc

View file

@ -167,6 +167,7 @@ in
Type = "simple";
Restart = "always";
RestartSec = "3";
ExecStart = "${data.package}/bin/tincd -D -U tinc.${network} -n ${network} ${optionalString (data.chroot) "-R"} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}";
};
preStart = ''
mkdir -p /etc/tinc/${network}/hosts
@ -186,9 +187,6 @@ in
[ -f "/etc/tinc/${network}/rsa_key.priv" ] || tincd -n ${network} -K 4096
fi
'';
script = ''
tincd -D -U tinc.${network} -n ${network} ${optionalString (data.chroot) "-R"} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}
'';
})
);