log SIGUSR2
This commit is contained in:
parent
cd019e1d7d
commit
f971088266
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user