]> git.corax.cc Git - foundry/commitdiff
watchbot: Add --name parameter to facilitate process identification
authorMatthias Kruk <m@m10k.eu>
Sat, 24 Jul 2021 07:13:48 +0000 (16:13 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 24 Jul 2021 07:16:09 +0000 (16:16 +0900)
The build system management script needs a way to identify individual
processes to make sure all configured processes are running.
This commit adds the --name parameter to watchbot, which is intended
to make the process identifiable as it shows up in the list output by
the --list parameter.

watchbot.sh

index f2968dbb5cc619aa175386f6bf6a06a6b0d6023d..6c8e8ed7896b0611b3cecdb8630ff50214b987b9 100755 (executable)
@@ -212,6 +212,8 @@ main() {
                    "Topic to publish notifications"
        opt_add_arg "i" "interval"   "v"  30          \
                    "Update check interval" "^[0-9]+$"
+       opt_add_arg "n" "name"       "rv" ""          \
+                   "The name of this instance"
 
        if ! opt_parse "$@"; then
                return 1