-
Notifications
You must be signed in to change notification settings - Fork 3
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 #250 from OpenHistoricalMap/staging
CGIMAP and Apache liveness Probe
- Loading branch information
Showing
5 changed files
with
30 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
# This is a script for the complex evaluation of whether Apache or other processes are running in the container. | ||
check_process() { | ||
if ps aux | grep "$1" | grep -v grep > /dev/null; then | ||
return 0 | ||
else | ||
return 1 | ||
fi | ||
} | ||
|
||
# Check for openstreetmap-cgimap process | ||
check_process "/usr/local/bin/openstreetmap-cgimap" | ||
cgimap_status=$? | ||
|
||
# Check for apache2 process | ||
check_process "apache2" | ||
apache_status=$? | ||
|
||
# Evaluate results | ||
if [ $cgimap_status -eq 0 ] && [ $apache_status -eq 0 ]; then | ||
echo "Both openstreetmap-cgimap and apache2 are running." | ||
exit 0 | ||
else | ||
echo "One or both processes are not running!" 1>&2 | ||
exit 1 | ||
fi |
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,4 +1,4 @@ | ||
dependencies: | ||
- name: osm-seed | ||
version: '0.1.0-n815.hccedaed' | ||
version: '0.1.0-n816.ha1443d4' | ||
repository: https://devseed.com/osm-seed-chart/ |
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