Attached is a systemd service file for radvd. It performs the same functions as the runscript. Reproducible: Always
Created attachment 328550 [details] service file Creates the PID directory with proper permissions in /var/run as systemd destroys these during reboot. Enables and disables ipv6 forwarding. Pipes logging to the journal. Supports configuration reloading. Limits the size of new files to 8, since the pid is usually only 4. I set the CPU scheduling policy to to idle as I presume these router announcements are not extremely time sensitive, but I would certainly defer judgment on that to a more qualified dev.
Created attachment 328552 [details, diff] Patch to install service unit in src_install
Thanks for your contribution, i see two points: The OpenRC version can be configured to toggle the ipv6 forwarding state or leave it alone. I consider this an regression on the systemd version. Personally, I think it's an bad idea at all, I don't want my ipv6 connectivity to go down eery time i restart radvd. Is it possible to preserve the old freedom? Would it be possible to use the radvd -n (no-daemon) option to avoid the pid-file? (I have absolutely no intention looking into the details of systemd) Michael
Created attachment 328726 [details] service file > The OpenRC version can be configured to toggle the ipv6 forwarding state or > leave it alone. I consider this an regression on the systemd version. > Personally, I think it's an bad idea at all, I don't want my ipv6 > connectivity to go down eery time i restart radvd. > Is it possible to preserve the old freedom? > > Would it be possible to use the radvd -n (no-daemon) option to avoid the > pid-file? > (I have absolutely no intention looking into the details of systemd) > > Michael I set the debug level flag to 1 which both removes the forwarding enabled start condition and keeps radvd in the foreground. There is a straightforward warning that gets logged if forwarding is disabled, so I think it'd be reasonable to just delegate forwarding to firewall init. So now no PID, no forwarding resonsibility. I also set the FSIZE rlimit to zero, as I don't see radvd creating any files now.
+*radvd-1.9.2 (23 Nov 2012) + + 23 Nov 2012; Michael Weber <xmw@gentoo.org> -radvd-1.8.5-r1.ebuild, + -files/radvd-1.8.5.init, +radvd-1.9.2.ebuild, +files/radvd.service, + -files/radvd.init: + Version bump, add systemd service description by Emery Hemingway (bug + 442064), drop old version. +