forked from idelorenzo/go-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a195fe3
commit a48ec23
Showing
2 changed files
with
1 addition
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
web: go-getting-started | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
# 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..5}; do | ||
echo "Long running task: $i/5" | ||
/bin/sleep 3 | ||
done | ||
|
||
kill $task1_pid | ||
exit 0 | ||
echo "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |