Bug 552453
Summary: | Add init script to also start dhcpd for IPv6. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Frank Crawford <frank> | ||||||
Component: | dhcp | Assignee: | Jiri Popelka <jpopelka> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | low | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 12 | CC: | dcantrell, fedora-bugzilla, frank, jpopelka, mgrepl, wwoods | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 4.1.0p1-17.fc12 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 558825 (view as bug list) | Environment: | |||||||
Last Closed: | 2010-01-21 00:06:15 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 558825 | ||||||||
Attachments: |
|
Description
Frank Crawford
2010-01-05 06:07:44 UTC
*** Bug 552799 has been marked as a duplicate of this bug. *** Thank you for the report Frank. Can you post your modified script for /etc/rc.d/init.d/dhcpd that will invoke dhcpd -6. I think we should have separate init.d scripts for v4 and v6. Right? Yes, I think we need separate init.d scripts. Created attachment 381936 [details]
dhcpd6 start up script
Created attachment 381938 [details]
Diff between /etc/init.d/dhcpd and /etc/init.d/dhcpd6
While the diff is obvious, it is primarily aimed at using the PID file to select the correct process and the add a different confguration file, since the default would use the same as for IPv4.
I'm not sure a second init script is necessary. Personally, I'd like to see a single dhcpd init script and adding variables to /etc/sysconfig/dhcpd along the lines of: IPV4_MODE=[yes|no] IPV6_MODE=[yes|no] Two daemons have to be running if you want both IPv4 support and IPv6 support. Then modify the existing dhcpd script to support launching dhcpd in -4 and/or -6 mode and keeping track of those pids. restart and condrestart would require restarting both daemons, but I don't see that as a problem because they would both be reading the same configuration file and restarting both on a config file is really safer than not. One or two scripts isn't too much of a problem, but given the differences in options within the configuration file, I don't think you can really share them. I suspect for all practical purposes you need to have two separate config files. Also, while playing with the daemon's lately, I've noticed that it is normally only necessary to restart one or the other. Rarely do you restart both at the same time, again, mainly due to the differences in options to be specified. (In reply to comment #8) > One or two scripts isn't too much of a problem, but given the differences in > options within the configuration file, I don't think you can really share them. > I suspect for all practical purposes you need to have two separate config > files. > > Also, while playing with the daemon's lately, I've noticed that it is normally > only necessary to restart one or the other. Rarely do you restart both at the > same time, again, mainly due to the differences in options to be specified. That's reasonable. In that case, the init script for dhcpd -6 should force the use of a different configuration file on the system. The dhcpd package should also make sure it's providing both the dhcpd and dhcpd6 services as well. dhcp-4.1.0p1-16.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update dhcp'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12048 dhcp-4.1.0p1-17.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update dhcp'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12048 dhcp-4.1.0p1-17.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. SELinux changes for this fix was added to selinux-policy-3.6.32-72.fc12.noarch. The update is available from updates-testing repo. su -c 'yum --enablerepo=updates-testing update selinux-policy-targeted' |