<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><br></div></div>
<br><div class="gmail_quote">On Tue, Jun 23, 2015 at 7:24 PM, Shraddha Pandhe <span dir="ltr"><<a href="mailto:spandhe.openstack@gmail.com" target="_blank">spandhe.openstack@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Is there a way to gracefully shutdown DHCPD using a signal?</div><div><br></div><div>I see that dhcpd supports following states:</div><div><div><br></div><div>enum dhcp_shutdown_state {</div><div><span style="white-space:pre-wrap"> </span>shutdown_listeners,</div><div><span style="white-space:pre-wrap"> </span>shutdown_omapi_connections,</div><div><span style="white-space:pre-wrap"> </span>shutdown_drop_omapi_connections,</div><div><span style="white-space:pre-wrap"> </span>shutdown_dhcp,</div><div><span style="white-space:pre-wrap"> </span>shutdown_done</div><div>};</div></div><div><br></div><div><br></div><div>Is there a way to follow these states, without using OMAPI connection?</div><div><br></div></div></blockquote><div>From the man page:</div><div>"To restart dhcpd, send a SIGTERM (signal 15) to the process ID contained in RUNDIR/dhcpd.pid, and then re-invoke dhcpd."</div></div><br></div><div class="gmail_extra">Sounds to me like kill -TERM is a graceful shutdown for dhcpd.</div><div class="gmail_extra"><br></div></div>