nixos/tinc: remove useless script argument
ExecStart is sufficient and more transparent to the user.
commit75ba415fbcfe48fdf5fb88f2aa461ce83921303f
authorJoerg Thalheim <joerg@thalheim.io>
dateWed 27 Sep 2017, 16:02 (9 years ago)
parentad8cb09
nixos/modules/services/networking/tinc.nix+1−3
@@ -167,6 +167,7 @@ in
167167 Type = "simple";
168168 Restart = "always";
169169 RestartSec = "3";
170+ ExecStart = "${data.package}/bin/tincd -D -U tinc.${network} -n ${network} ${optionalString (data.chroot) "-R"} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}";
170171 };
171172 preStart = ''
172173 mkdir -p /etc/tinc/${network}/hosts
@@ -186,9 +187,6 @@ in
186187 [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tincd -n ${network} -K 4096
187188 fi
188189 '';
189− script = ''
190− tincd -D -U tinc.${network} -n ${network} ${optionalString (data.chroot) "-R"} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}
191− '';
192190 })
193191 );
194192