forked from docker/midPoint_container
-
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.
modification logging of shibboleth, httpd, supervisor and crond; remo…
…ving mistakes in cron configuration
- Loading branch information
Showing
8 changed files
with
58 additions
and
27 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
4 changes: 4 additions & 0 deletions
4
grouper-midpoint/mp-gr/midpoint-server/container_files/usr-local-bin/setenv.sh
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,4 @@ | ||
| #!/bin/bash | ||
| printenv | sed 's/^\(.*\)$/\1/g' | grep -E "^MP_VERSION" > /opt/tier/env.bash | ||
| printenv | sed 's/^\(.*\)$/\1/g' | grep -E "^TIER_RELEASE" >> /opt/tier/env.bash | ||
| printenv | sed 's/^\(.*\)$/\1/g' | grep -E "^TIER_MAINTAINER" >> /opt/tier/env.bash |
13 changes: 7 additions & 6 deletions
13
grouper-midpoint/mp-gr/midpoint-server/container_files/usr-local-bin/setupcron.sh
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,9 +1,10 @@ | ||
| #!/bin/bash | ||
|
|
||
| CRONTMPFILE=/tmp/cronfile | ||
| CRONFILE=/opt/tier/cronfile | ||
|
|
||
| echo "#send daily \"beacon\" to central" > ${CRONTMPFILE} | ||
| #echo $(expr $RANDOM % 59) $(expr $RANDOM % 3) "* * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONTMPFILE} | ||
| echo 47 "* * * * /usr/local/bin/sendtierbeacon.sh >> /dev/fd/8 2>&1" >> ${CRONTMPFILE} | ||
| chmod 644 ${CRONTMPFILE} | ||
| crontab ${CRONTMPFILE} | ||
| /opt/tier/setenv.sh | ||
|
|
||
| echo "#send daily \"beacon\" to central" > ${CRONFILE} | ||
| echo $(expr $RANDOM % 59) $(expr $RANDOM % 3) "* * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} | ||
| chmod 644 ${CRONFILE} | ||
| crontab ${CRONFILE} |
19 changes: 19 additions & 0 deletions
19
grouper-midpoint/mp-gr/midpoint-server/container_files/usr-local-bin/startup.sh
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,19 @@ | ||
| #!/bin/sh | ||
|
|
||
| # generic console logging pipe for anyone | ||
| mkfifo -m 666 /tmp/logpipe | ||
| cat <> /tmp/logpipe 1>&2 & | ||
|
|
||
| mkfifo -m 666 /tmp/loghttpd | ||
| (cat <> /tmp/loghttpd | awk '{printf "%s\n", $0; fflush()}' 1>/tmp/logpipe) & | ||
|
|
||
| mkfifo -m 666 /tmp/logshib | ||
| (cat <> /tmp/logshib | awk '{printf "%s\n", $0; fflush()}' 1>/tmp/logpipe) & | ||
|
|
||
| mkfifo -m 666 /tmp/logcrond | ||
| (cat <> /tmp/logcrond | awk -v ENV="$ENV" -v USERTOKEN="$USERTOKEN" '{printf "crond;console;%s;%s;%s\n", ENV, USERTOKEN, $0; fflush()}' 1>/tmp/logpipe) & | ||
|
|
||
| mkfifo -m 666 /tmp/logsuperd | ||
| (cat <> /tmp/logsuperd | awk -v ENV="$ENV" -v USERTOKEN="$USERTOKEN" '{printf "supervisord;console;%s;%s;%s\n", ENV, USERTOKEN, $0; fflush()}' 1>/tmp/logpipe) & | ||
|
|
||
| /usr/bin/supervisord -c /etc/supervisor/supervisord.conf |