-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from 1thorsten/1.2.0
RELEASE 1.2.0
- Loading branch information
Showing
24 changed files
with
3,042 additions
and
105 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SIGTERM-handler | ||
# https://blog.codeship.com/trapping-signals-in-docker-containers/ | ||
function term_handler() { | ||
echo "$(date +'%T'): stop http server and unmount all filesystems / EXIT signal detected" | ||
for i in $(mount | awk '{print $3}' | grep "^/remote/"); do | ||
echo "sudo /usr/bin/umount --force $i" | ||
sudo /usr/bin/umount --force "$i" | ||
done | ||
service nginx stop | ||
echo "$(date +'%T'): all terminated" | ||
exit 143 # 128 + 15 -- SIGTERM | ||
} | ||
trap "term_handler" EXIT | ||
|
||
echo "sudo -E /scripts/http-over-all.sh" | ||
sudo -E /scripts/http-over-all.sh |
Oops, something went wrong.