Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442064 - net-misc/radvd systemd service file
Summary: net-misc/radvd systemd service file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Wolfram Schlich (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-11-06 17:04 UTC by Emery Hemingway
Modified: 2012-11-23 22:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
service file (radvd.service,594 bytes, text/plain)
2012-11-06 17:11 UTC, Emery Hemingway
Details
Patch to install service unit in src_install (radvd-ebuild.patch,603 bytes, patch)
2012-11-06 17:12 UTC, Emery Hemingway
Details | Diff
service file (radvd.service,356 bytes, text/plain)
2012-11-07 17:53 UTC, Emery Hemingway
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emery Hemingway 2012-11-06 17:04:37 UTC
Attached is a systemd service file for radvd. It performs the same functions as the runscript.

Reproducible: Always
Comment 1 Emery Hemingway 2012-11-06 17:11:37 UTC
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.
Comment 2 Emery Hemingway 2012-11-06 17:12:24 UTC
Created attachment 328552 [details, diff]
Patch to install service unit in src_install
Comment 3 Michael Weber (RETIRED) gentoo-dev 2012-11-07 01:31:49 UTC
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
Comment 4 Emery Hemingway 2012-11-07 17:53:41 UTC
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.
Comment 5 Michael Weber (RETIRED) gentoo-dev 2012-11-23 22:12:18 UTC
+*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.
+