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.

Changed files
+1 -14
nixos
modules
services
networking
+1 -14
nixos/modules/services/networking/radvd.nix
···
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";
};
};