From 79e7f7af9a2262f8d8e6bea2b32d18f24b668a0c Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Thu, 15 Feb 2018 06:59:15 +0100 Subject: [PATCH] radvd service: fix due to systemd upgrade After the systemd 237 upgrade, radvd wouldn't start anymore because the PID file cannot be written. It seems that directories in /run has to be explicitely defined as RuntimeDirectory now. The PID file isn't needed due to systemd, though, so it was removed along with forking and loggia via syslog. This fixes the ipv6 NixOS test. --- nixos/modules/services/networking/radvd.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/nixos/modules/services/networking/radvd.nix b/nixos/modules/services/networking/radvd.nix index 0199502163a3..85d7f9e4a41b 100644 --- a/nixos/modules/services/networking/radvd.nix +++ b/nixos/modules/services/networking/radvd.nix @@ -59,24 +59,11 @@ in systemd.services.radvd = { description = "IPv6 Router Advertisement Daemon"; - wantedBy = [ "multi-user.target" ]; - after = [ "network.target" ]; - - path = [ pkgs.radvd ]; - - preStart = '' - mkdir -m 755 -p /run/radvd - chown radvd /run/radvd - ''; - serviceConfig = - { ExecStart = "@${pkgs.radvd}/sbin/radvd radvd" - + " -p /run/radvd/radvd.pid -m syslog -u radvd -C ${confFile}"; + { ExecStart = "@${pkgs.radvd}/bin/radvd radvd -n -u radvd -C ${confFile}"; Restart = "always"; - Type = "forking"; - PIDFile = "/run/radvd/radvd.pid"; }; };