Fixup which service is restarted when pictures change
All checks were successful
continuous-integration/drone/tag Build is passing
All checks were successful
continuous-integration/drone/tag Build is passing
This commit is contained in:
parent
5212949fb0
commit
16f7ddcd58
|
@ -17,9 +17,9 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Create watchdog timer that restarts fim.service on timeout
|
// Create watchdog timer that restarts pf-ui.service on timeout
|
||||||
watchdog := watchdog.New(TIMEOUT, func() {
|
watchdog := watchdog.New(TIMEOUT, func() {
|
||||||
err := exec.Command(CMD_SYSTEMCTL, "restart", "fim.service").Run()
|
err := exec.Command(CMD_SYSTEMCTL, "restart", "pf-ui.service").Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error running %s : %s", CMD_SYSTEMCTL, err)
|
log.Fatalf("Error running %s : %s", CMD_SYSTEMCTL, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue