mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
zerotierone: adopt systemd unit from upstream
See
5db538d85e/ext/installfiles/linux/systemd/zerotier-one.service
This commit is contained in:
parent
885acea1dd
commit
433f979cee
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user