From 882853852421b2d51c510e1e9d7efb5cd09a929a Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Wed, 12 Jun 2024 11:34:54 +0100 Subject: [PATCH 1/3] remove argument, usage and functionality with argument -c cluster --- resources/bin/rb_wakeup_chef.sh | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/resources/bin/rb_wakeup_chef.sh b/resources/bin/rb_wakeup_chef.sh index f57dbf4..4362727 100644 --- a/resources/bin/rb_wakeup_chef.sh +++ b/resources/bin/rb_wakeup_chef.sh @@ -7,7 +7,6 @@ source /etc/profile function usage() { echo "$0 [ -l ] [ -c ] [ -s ] [ -i ] [ -n ]" echo " * -l -> show logs after the wakeup" - echo " * -c -> wakeup full cluster" #echo " * -i -> wakeup sensor nodes" #echo " * -n -> wakeup sensor/manager node name" echo " * -s -> wakeup manager with this service name enabled" @@ -39,30 +38,19 @@ function wakeup_node_service() { fi } -wmanagers=0 showlogs=0 service="" -while getopts "hcs:l" name +while getopts "hs:l" name do case $name in h) usage;; - c) wmanagers=1;; l) showlogs=1;; s) service="$OPTARG";; esac done -if [ $wmanagers -eq 1 ]; then - if [ "x$service" == "x" ]; then - /usr/bin/serf query -timeout=250ms -no-ack wakeup-chef &>/dev/null - else - # TODO - wakeup_node_service $service &>/dev/null #Only wakeup in local node if the service exists - fi -else - wakeup -fi +wakeup if [ $showlogs -eq 1 ]; then echo "Showing chef-client logs on $(hostname): " From 9b01fe08348603ef7df2fc68984af156bb474812 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Wed, 12 Jun 2024 13:57:56 +0100 Subject: [PATCH 2/3] bad argument prints usage in rb_wakeup_chef.sh, removed -c from usage --- resources/bin/rb_wakeup_chef.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/bin/rb_wakeup_chef.sh b/resources/bin/rb_wakeup_chef.sh index 4362727..0575e30 100644 --- a/resources/bin/rb_wakeup_chef.sh +++ b/resources/bin/rb_wakeup_chef.sh @@ -5,7 +5,7 @@ source /etc/init.d/functions source /etc/profile function usage() { - echo "$0 [ -l ] [ -c ] [ -s ] [ -i ] [ -n ]" + echo "$0 [ -l ] [ -s ] [ -i ] [ -n ]" echo " * -l -> show logs after the wakeup" #echo " * -i -> wakeup sensor nodes" #echo " * -n -> wakeup sensor/manager node name" @@ -44,9 +44,9 @@ service="" while getopts "hs:l" name do case $name in - h) usage;; l) showlogs=1;; s) service="$OPTARG";; + *) usage;; esac done From 2e22b77639d59877c59c68f5bd92ba307fbb7119 Mon Sep 17 00:00:00 2001 From: nilsver Date: Thu, 13 Jun 2024 08:09:45 +0100 Subject: [PATCH 3/3] Release 0.3.1 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 0d91a54..9e11b32 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.0 +0.3.1