Bug 3428 - dhcpd could not start by systemd
: dhcpd could not start by systemd
Status: RESOLVED FIXED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Main Packages
: Fresh
: All Linux
: Normal normal
: ---
Assigned To: ROSA Linux Bugs
: ROSA Linux Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-17 14:04 MSK by FirstLevel
Modified: 2014-01-01 22:46 MSK (History)
3 users (show)

See Also:
RPM Package: dhcp-server-4.2.5-0.P1.3-rosa2012.1.x86_64
ISO-related:
Bad POT generating:
Upstream:


Attachments
diagnostic information (2.04 KB, text/plain)
2013-12-17 14:04 MSK, FirstLevel
Details
messages.txt (69.87 KB, text/plain)
2013-12-19 12:39 MSK, FirstLevel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FirstLevel 2013-12-17 14:04:19 MSK
Created attachment 2416 [details]
diagnostic information

Description of problem:
I have installed ROSA 2012.1 Fresh R1 and used dhcp server. It worked well.
But after update to R2 I have seen that dhcpd could not start by systemd. See attachment.

If I launch dhcpd manually by execution of "/usr/sbin/dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcp/dhcpd.leases -q" 
I see that it works
# ps ax|grep dhcp
32446 ?        Ss     0:00 /usr/sbin/dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcp/dhcpd.leases -q

I have attached some diagnostic information

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Aleksandr Kazantcev 2013-12-18 00:41:29 MSK
Try change string in /lib/systemd/system/dhcpd.service like this:

ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES


If this work, we will fix package too...
Comment 2 FirstLevel 2013-12-18 10:44:16 MSK
(In reply to comment #1)
> Try change string in /lib/systemd/system/dhcpd.service like this:
> 
> ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES
> 
> 
> If this work, we will fix package too...

It does not help
Comment 3 Aleksandr Kazantcev 2013-12-18 11:05:06 MSK
This adding fully similar command you typed..

reboot system, run dhcpd.service via systemd and see FULL error text via

tail /var/log/messages -n200
Comment 4 FirstLevel 2013-12-19 12:39:27 MSK
(In reply to comment #3)
> This adding fully similar command you typed..
> 
> reboot system, run dhcpd.service via systemd and see FULL error text via
> 
> tail /var/log/messages -n200

# systemctl status dhcpd
dhcpd.service - DHCPv4 Server Daemon
   Loaded: loaded (/lib/systemd/system/dhcpd.service; enabled)
   Active: inactive (dead) since Чт. 2013-12-19 17:18:40 YAKT; 14min ago
  Process: 3489 ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES (code=exited, status=0/SUCCESS)

дек. 19 17:18:33 mbs systemd[1]: Starting DHCPv4 Server Daemon...
дек. 19 17:18:33 mbs systemd[1]: Started DHCPv4 Server Daemon.
дек. 19 17:18:33 mbs dhcpd[3489]: Not searching LDAP since ldap-server, ldap-port ...ile
дек. 19 17:18:33 mbs dhcpd[3489]: Internet Systems Consortium DHCP Server 4.2.5-P1
дек. 19 17:18:33 mbs dhcpd[3489]: Copyright 2004-2013 Internet Systems Consortium.
дек. 19 17:18:33 mbs dhcpd[3489]: All rights reserved.
дек. 19 17:18:33 mbs dhcpd[3489]: For info, please visit https://www.isc.org/softw...cp/
дек. 19 17:18:33 mbs dhcpd[3489]: Wrote 86 leases to leases file.





And see attached messages.txt
Comment 5 FirstLevel 2013-12-19 12:39:48 MSK
Created attachment 2423 [details]
messages.txt
Comment 6 Denis Silakov 2013-12-25 15:43:07 MSK
It seems that we have published incorrectly built dhcp, with old systemd and without %tmpfiles_create macro.
Comment 8 FirstLevel 2013-12-26 09:10:04 MSK
(In reply to comment #7)
> Can you try these packages:
> 
> (32bit):
> http://abf-downloads.rosalinux.ru/rosa2012.1/container/1495325/i586/main/
> release/
> 
> (64bit):
> http://abf-downloads.rosalinux.ru/rosa2012.1/container/1495326/x86_64/main/
> release/

It does not help to user. He has done update on 64bit and 32bit computers - problem is present.
Comment 9 MikhailZ 2013-12-30 22:54:01 MSK
patching this line

-ExecStart=/usr/sbin/dhcpd -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES
+ExecStart=/usr/sbin/dhcpd -d -cf $CONFIGFILE -lf $LEASEFILE $OPTIONS $INTERFACES

fix problem for me (using current dhcp-server-4.2.5-0.P1.4-rosa2012.1.i586)
Comment 10 Denis Silakov 2013-12-30 23:50:02 MSK
Thanks, let's try these packages:

(32bit)
http://abf-downloads.rosalinux.ru/rosa2012.1/container/1497786/i586/main/release/

(64bit)
http://abf-downloads.rosalinux.ru/rosa2012.1/container/1497787/x86_64/main/release/

Though they have been already sent to publishing, so there is a chance that you will receive new dhcp-server-4.2.5-0.P1.5 with regular updates soon.
Comment 11 FirstLevel 2014-01-01 19:13:04 MSK
User has said that after last updates of DHCP packages from official repos problem was solved.
Comment 12 Denis Silakov 2014-01-01 22:46:14 MSK
Ok, closing then. Thanks to Mikhail for pointing out to missing option.