From 433f979cee469434081b6c7cdf69d5f949f32ebb Mon Sep 17 00:00:00 2001 From: zimbatm Date: Fri, 19 Feb 2016 22:56:19 +0000 Subject: [PATCH] zerotierone: adopt systemd unit from upstream See https://github.com/zerotier/ZeroTierOne/blob/5db538d85ef739fa969a5b71d294501ac0bb5335/ext/installfiles/linux/systemd/zerotier-one.service --- nixos/modules/services/networking/zerotierone.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/networking/zerotierone.nix b/nixos/modules/services/networking/zerotierone.nix index 886ea18d9809..6237f95b127b 100644 --- a/nixos/modules/services/networking/zerotierone.nix +++ b/nixos/modules/services/networking/zerotierone.nix @@ -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 ];