mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
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.
This commit is contained in:
parent
672bb6b4ab
commit
79e7f7af9a
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue