[Kea-users] Updating kea.conf - does it need a daemon restart

Ricardo J. Barberis ricardo at palmtx.com.ar
Thu Sep 14 17:12:41 UTC 2017


I fail to see what has systemd has to do with anything here... this is either
a problem with Ubuntu's package or an old kea which just doesn't support
SIGHUP maybe?

FWIW, kea 1.2.0 on CentOS 7.4 processes SIGHUP fine:

[root at dhcp01 ~] # rpm -q kea
kea-1.2.0-1.el7.centos.x86_64

[root at dhcp01 ~] # ps fax | grep -v grep | grep kea
 1060 ?        Ssl    0:00 /usr/sbin/kea-dhcp6 -c /etc/kea/kea.conf
 1061 ?        Ssl    0:00 /usr/sbin/kea-dhcp4 -c /etc/kea/kea.conf

[root at dhcp01 ~] # kill -SIGHUP 1060
[root at dhcp01 ~] # kill -SIGHUP 1061

[root at dhcp01 ~] # ps fax | grep -v grep | grep kea
 1060 ?        Ssl    0:00 /usr/sbin/kea-dhcp6 -c /etc/kea/kea.conf
 1061 ?        Ssl    0:00 /usr/sbin/kea-dhcp4 -c /etc/kea/kea.conf

[root at dhcp01 ~] # grep HUP /var/log/kea-dhcp4.log
2017-09-14 14:02:56.278 INFO  [kea-dhcp4.dhcp4/1061] DHCP4_DYNAMIC_RECONFIGURATION initiate server reconfiguration using file: /etc/kea/kea.conf, after receiving 
SIGHUP signal

[root at dhcp01 ~] # grep HUP /var/log/kea-dhcp6.log
2017-09-14 14:02:55.366 INFO  [kea-dhcp6.dhcp6/1060] DHCP6_DYNAMIC_RECONFIGURATION initiate server reconfiguration using file: /etc/kea/kea.conf, after receiving 
SIGHUP signal

[root at dhcp01 ~] # cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)

[root at dhcp01 ~] # systemctl list-unit-files --all | sort | grep kea
kea-dhcp-ddns.service                         disabled
kea-dhcp4.service                             enabled
kea-dhcp6.service                             enabled


El Jueves 14/09/2017 a las 13:34, Jeff Kletsky escribió:
> Gotta love systemd :(
>
> I abandoned the packaged systemd service definitions and approach for a
> more "sane" approach of starting keactrl and letting it manage the
> various parts of kea, rather than having one service for each component.
>
> I also install kea directly (to /opt, to keep things cleaner) as
> Debian/Ubuntu is only on isc-kea-1.1.0-1
>
> Jeff
>
> On 9/14/17 8:49 AM, Neil Briscoe wrote:
> > Ah ok.  Thanks.
> >
> > I’ve just tried this and it kills the kea daemon completely.  Ubuntu
> > 16.04, kea 1.0.0 for the apt repo.
> >
> > Using “service kea-dhcp4-server start” to start the daemon.
> >
> > root at az01-dhcp-02:/# ps -ef | grep kea
> > root     14798     1  0 16:39 ?        00:00:00 /usr/sbin/kea-dhcp4 -c
> > /etc/kea/kea-dhcp4.conf root     14994 14631  0 16:47 pts/1    00:00:00
> > grep --color=auto kea
> >
> > root at az01-dhcp-02:/# kill -SIGHUP 14798
> >
> > root at az01-dhcp-02:/# ps -ef | grep kea
> > root     14999 14631  0 16:47 pts/1    00:00:00 grep --color=auto kea
> >
> > root at az01-dhcp-02:/# ps -ef | grep kea
> > root     15001 14631  0 16:47 pts/1    00:00:00 grep --color=auto kea
> >
> > root at az01-dhcp-02:/# ps -ef | grep kea
> > root     15003 14631  0 16:47 pts/1    00:00:00 grep --color=auto kea
> >
> > root at az01-dhcp-02:/# ps -ef | grep kea
> > root     15005 14631  0 16:47 pts/1    00:00:00 grep --color=auto kea
> >
> >
> > Hmmm.  There is no keactrl with the package either, may have to hunt that
> > down in manually install it.
> >
> >
> > Neil Briscoe | e. neil.briscoe at 6point6.co.uk | t. +44 7793 056923
> > <tel:+44+7557+526+550> | w. www.6point6.co.uk <http://www.6point6.co.uk/>
> >
> >
> >
> >
> > On 14/09/2017, 16:45, "Thomas Markwalder" <tmark at isc.org> wrote:
> >
> >      On 9/14/17 11:35 AM, Neil Briscoe wrote:
> >      > Thanks for the speedy reply Thomas.
> >      >
> >      > Is “kill –SIGHUP <pid for kea>” the same as “service
> >      > kea-dhcp4-server restart” or is this slightly different?
> >      >
> >      > Thanks,
> >      >
> >      > Neil Briscoe | e. neil.briscoe at 6point6.co.uk | t. +44 7793 056923
> >      > <tel:+44+7557+526+550> | w. www.6point6.co.uk
> >      > <http://www.6point6.co.uk/>
> >
> >      Sending SIGHUP instructs the running server to reload the
> > configuration file.  Using "service" to restart would actually tell the
> > OS to stop the current instance of the server and then restart it.
> >
> >      Thomas
> >
> >
> >
> > _______________________________________________
> > Kea-users mailing list
> > Kea-users at lists.isc.org
> > https://lists.isc.org/mailman/listinfo/kea-users
>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users



-- 
Ricardo J. Barberis
Usuario Linux Nº 250625: http://counter.li.org/
Usuario LFS Nº 5121: http://www.linuxfromscratch.org/
Senior SysAdmin / IT Architect - www.DonWeb.com



More information about the Kea-users mailing list