Mageia Bugzilla – Attachment 1467 Details for
Bug 4353
dhcpd service not running after boot. (systemd)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
logs and configuration information.
dhcp.bug (text/plain), 2.99 KB, created by
Bit Twister
on 2012-01-30 22:25:49 CET
(
hide
)
Description:
logs and configuration information.
Filename:
MIME Type:
Creator:
Bit Twister
Created:
2012-01-30 22:25:49 CET
Size:
2.99 KB
patch
obsolete
> >I had already preformed the next two commands and rebooted. > ># chkconfig --add dhcpd > ># systemctl enable dhcpd.service >dhcpd.service is not a native service, redirecting to /sbin/chkconfig. >Executing /sbin/chkconfig dhcpd on >Warning: unit files do not carry install information. No operation executed. > >$ tail -2 /var/log/messages > >Jan 30 11:09:59 wb2 systemd[1]: Reloading. >Jan 30 11:09:59 wb2 systemd[1]: Reloading. > > ># /etc/cron.daily/mlocate.cron > ># locate dhcpd | grep systemd/ >/lib/systemd/system/dhcpd > ># cat /lib/systemd/system/dhcpd >[Unit] >Description=DHCPv4 Server Daemon >After=syslog.target network.target > >[Service] >EnvironmentFile=/etc/sysconfig/dhcpd >ExecStart=/usr/sbin/dhcpd -d -user dhcpd -group dhcpd --no-pid $DHCPDARGS > >[Install] >WantedBy=multi-user.target > > >Issued a reboot, server was not running. > ># date >Mon Jan 30 11:54:28 CST 2012 > ># time systemctl restart dhcpd.service >Job failed. See system logs and 'systemctl status' for details. > >real 5m0.005s >user 0m0.002s >sys 0m0.001s > ># tail -6 /var/log/messages >Jan 30 11:54:31 wb2 dhcpd: DHCPDISCOVER from 00:18:dd:01:a3:fe via eth1 >Jan 30 11:54:31 wb2 dhcpd: DHCPOFFER on 169.254.1.27 to 00:18:dd:01:a3:fe via eth1 >Jan 30 11:54:32 wb2 dhcpd: DHCPREQUEST for 169.254.1.27 (169.254.1.1) from 00:18:dd:01:a3:fe via eth1 >Jan 30 11:54:32 wb2 dhcpd: DHCPACK on 169.254.1.27 to 00:18:dd:01:a3:fe via eth1 >Jan 30 11:59:05 wb2 systemd[1]: dhcpd.service operation timed out. Terminating. >Jan 30 11:59:05 wb2 systemd[1]: Unit dhcpd.service entered failed state. > >As you can see dhcpd started and handed out a lease to network tv >tuner, but systemd said it failed. > > >]# cat /etc/dhcpd.conf ># dhcpd.conf > ># option definitions common to all supported networks... >option domain-name "home.test"; >option domain-name-servers 192.168.1.100 ; > >default-lease-time 129600; >max-lease-time 259200; > ># Use this to enble / disable dynamic dns updates globally. >#ddns-update-style none; > ># If this DHCP server is the official DHCP server for the local ># network, the authoritative directive should be uncommented. >authoritative; > ># Use this to send dhcp log messages to a different log file (you also ># have to hack syslog.conf to complete the redirection). >log-facility local7; > ># No service will be given on this subnet, but declaring it helps the ># DHCP server to understand the network topology. > >subnet 192.168.1.0 netmask 255.255.255.0 { >} > > >host HDHR-101AAB03 { > hardware ethernet 00:18:dd:01:aa:b0; > fixed-address HDHR-101AAB03.home.test; >} > >host HDHR-101A3FED { > hardware ethernet 00:18:dd:01:a3:fe; > fixed-address HDHR-101A3FED.home.test; >} > >host HDHR-1033AAEC { > hardware ethernet 00:18:dd:03:3a:ae; > fixed-address HDHR-1033AAEC.home.test; >} > > ># A slightly different configuration for an internal subnet. >subnet 169.254.1.0 netmask 255.255.255.0 { > range 169.254.1.28 169.254.1.30; > option domain-name-servers 192.168.1.100; > option domain-name "home.test"; > option routers 169.254.1.1; > option broadcast-address 169.254.1.31; > default-lease-time 144000; > max-lease-time 288000; >}
I had already preformed the next two commands and rebooted. # chkconfig --add dhcpd # systemctl enable dhcpd.service dhcpd.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig dhcpd on Warning: unit files do not carry install information. No operation executed. $ tail -2 /var/log/messages Jan 30 11:09:59 wb2 systemd[1]: Reloading. Jan 30 11:09:59 wb2 systemd[1]: Reloading. # /etc/cron.daily/mlocate.cron # locate dhcpd | grep systemd/ /lib/systemd/system/dhcpd # cat /lib/systemd/system/dhcpd [Unit] Description=DHCPv4 Server Daemon After=syslog.target network.target [Service] EnvironmentFile=/etc/sysconfig/dhcpd ExecStart=/usr/sbin/dhcpd -d -user dhcpd -group dhcpd --no-pid $DHCPDARGS [Install] WantedBy=multi-user.target Issued a reboot, server was not running. # date Mon Jan 30 11:54:28 CST 2012 # time systemctl restart dhcpd.service Job failed. See system logs and 'systemctl status' for details. real 5m0.005s user 0m0.002s sys 0m0.001s # tail -6 /var/log/messages Jan 30 11:54:31 wb2 dhcpd: DHCPDISCOVER from 00:18:dd:01:a3:fe via eth1 Jan 30 11:54:31 wb2 dhcpd: DHCPOFFER on 169.254.1.27 to 00:18:dd:01:a3:fe via eth1 Jan 30 11:54:32 wb2 dhcpd: DHCPREQUEST for 169.254.1.27 (169.254.1.1) from 00:18:dd:01:a3:fe via eth1 Jan 30 11:54:32 wb2 dhcpd: DHCPACK on 169.254.1.27 to 00:18:dd:01:a3:fe via eth1 Jan 30 11:59:05 wb2 systemd[1]: dhcpd.service operation timed out. Terminating. Jan 30 11:59:05 wb2 systemd[1]: Unit dhcpd.service entered failed state. As you can see dhcpd started and handed out a lease to network tv tuner, but systemd said it failed. ]# cat /etc/dhcpd.conf # dhcpd.conf # option definitions common to all supported networks... option domain-name "home.test"; option domain-name-servers 192.168.1.100 ; default-lease-time 129600; max-lease-time 259200; # Use this to enble / disable dynamic dns updates globally. #ddns-update-style none; # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. authoritative; # Use this to send dhcp log messages to a different log file (you also # have to hack syslog.conf to complete the redirection). log-facility local7; # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. subnet 192.168.1.0 netmask 255.255.255.0 { } host HDHR-101AAB03 { hardware ethernet 00:18:dd:01:aa:b0; fixed-address HDHR-101AAB03.home.test; } host HDHR-101A3FED { hardware ethernet 00:18:dd:01:a3:fe; fixed-address HDHR-101A3FED.home.test; } host HDHR-1033AAEC { hardware ethernet 00:18:dd:03:3a:ae; fixed-address HDHR-1033AAEC.home.test; } # A slightly different configuration for an internal subnet. subnet 169.254.1.0 netmask 255.255.255.0 { range 169.254.1.28 169.254.1.30; option domain-name-servers 192.168.1.100; option domain-name "home.test"; option routers 169.254.1.1; option broadcast-address 169.254.1.31; default-lease-time 144000; max-lease-time 288000; }
View Attachment As Raw
Actions:
View
Attachments on
bug 4353
: 1467