dhcp4/dhcp6: notify dyndns if present

This commit is contained in:
Michael Stapelberg 2018-06-17 19:30:30 +02:00
parent bb6b901b90
commit 7a46d077ee
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,9 @@ func logic() error {
if err := notify.Process("/user/netconfi", syscall.SIGUSR1); err != nil { if err := notify.Process("/user/netconfi", syscall.SIGUSR1); err != nil {
log.Printf("notifying netconfig: %v", err) log.Printf("notifying netconfig: %v", err)
} }
if err := notify.Process("/user/dyndns", syscall.SIGUSR1); err != nil {
log.Printf("notifying dyndns: %v", err)
}
select { select {
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

View File

@ -57,6 +57,9 @@ func logic() error {
if err := notify.Process("/user/radvd", syscall.SIGUSR1); err != nil { if err := notify.Process("/user/radvd", syscall.SIGUSR1); err != nil {
log.Printf("notifying radvd: %v", err) log.Printf("notifying radvd: %v", err)
} }
if err := notify.Process("/user/dyndns", syscall.SIGUSR1); err != nil {
log.Printf("notifying dyndns: %v", err)
}
select { select {
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