diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-20 23:37:06 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-20 23:37:06 +0300 |
| commit | 7fa1d0c1e3fb7ceb23ba3d88a93905d68522c930 (patch) | |
| tree | 9bbc3e525b9d74ca3a2e1f7b8e7cb77b83154b11 /cmd | |
| parent | 1770bba5519236198c5d1a597507e1cb79da16e5 (diff) | |
add renotify
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gogios/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/gogios/main.go b/cmd/gogios/main.go index e125bd2..516c498 100644 --- a/cmd/gogios/main.go +++ b/cmd/gogios/main.go @@ -11,11 +11,12 @@ import ( func main() { configFile := flag.String("cfg", "/etc/gogios.json", "The config file") timeout := flag.Int("timeout", 5, "Global timeout in minutes") + renotify := flag.Bool("renotify", false, "Renotify all unhandled") flag.Parse() ctx, cancel := context.WithTimeout(context.Background(), time.Duration(*timeout)*time.Minute) defer cancel() - internal.Run(ctx, *configFile) + internal.Run(ctx, *configFile, *renotify) } |
