From de56715082fa839a54b5a8d460c7584e43b5c8ac Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 24 Jul 2021 16:13:48 +0900 Subject: [PATCH] watchbot: Add --name parameter to facilitate process identification 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/watchbot.sh b/watchbot.sh index f2968db..6c8e8ed 100755 --- a/watchbot.sh +++ b/watchbot.sh @@ -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 -- 2.47.3