log SIGUSR2

This commit is contained in:
Michael Stapelberg 2018-06-02 10:16:16 +02:00
parent cd019e1d7d
commit f971088266

View File

@ -55,6 +55,7 @@ func logic() error {
case <-time.After(time.Until(c.Config().RenewAfter)): case <-time.After(time.Until(c.Config().RenewAfter)):
// fallthrough and renew the DHCP lease // fallthrough and renew the DHCP lease
case <-usr2: case <-usr2:
log.Printf("SIGUSR2 received, sending DHCPRELEASE")
if err := c.Release(); err != nil { if err := c.Release(); err != nil {
return err return err
} }