system, adjust finish script to sleep on success too, just for a shorter time.
This commit is contained in:
@@ -21,10 +21,14 @@
|
||||
# $1 is the exit code, $2 is the exit status byte (signal number if killed)
|
||||
echo "FINISH: Service returned with exit code: $1 and status: $2"
|
||||
|
||||
sleep=30
|
||||
sleep_long=30
|
||||
sleep_short=5
|
||||
if [[ "$1" != 0 ]]; then
|
||||
echo "FINISH: Sleeping for $sleep seconds due to error..."
|
||||
sleep $sleep
|
||||
echo "FINISH: Sleeping for $sleep_long seconds due to error..."
|
||||
sleep $sleep_long
|
||||
else
|
||||
echo "FINISH: Sleeping for $sleep_short seconds."
|
||||
sleep $sleep_short
|
||||
fi
|
||||
|
||||
- name: General | Facts | System | Global 02
|
||||
|
||||
Reference in New Issue
Block a user