Skip to content

Commit

Permalink
add set -x
Browse files Browse the repository at this point in the history
  • Loading branch information
joeybrown-sf committed Apr 1, 2024
1 parent 96ae964 commit a195fe3
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions bin/postdeploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# Path: bin/predeploy.sh
#!/bin/sh

set -x

echo "Starting task 1"
while true; do
echo "Resource monitor: $(date)"
/bin/sleep 2
done &
task1_pid=$!
echo "Task 1 PID: $task1_pid"

echo "Starting task 2"
for i in {0..60}; do
echo "Long running task: $i/60"
sleep 1
for i in {0..5}; do
echo "Long running task: $i/5"
/bin/sleep 3
done

kill $task1_pid
exit 0

0 comments on commit a195fe3

Please sign in to comment.