zerotierone: adopt systemd unit from upstream

See
5db538d85e/ext/installfiles/linux/systemd/zerotier-one.service
This commit is contained in:
zimbatm 2016-02-19 22:56:19 +00:00
parent 885acea1dd
commit 433f979cee

View File

@ -21,10 +21,9 @@ in
chown -R root:root /var/lib/zerotier-one
'';
serviceConfig = {
Type = "forking";
User = "root";
PIDFile = "/var/lib/zerotier-one/zerotier-one.pid";
ExecStart = "${pkgs.zerotierone}/bin/zerotier-one -d";
ExecStart = "${pkgs.zerotierone}/bin/zerotier-one";
Restart = "always";
KillMode = "process";
};
};
environment.systemPackages = [ pkgs.zerotierone ];