-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start cron daemon with root externally upon docker run (#1506)
* Start cron daemon with root externally upon docker run Switch from /etc/init.d/cron to service command * Preserve the env for the cron daemon && Add --only-cron for wmagent-couchapp-init && Add timestamps
- Loading branch information
1 parent
6157fcc
commit 38842cd
Showing
3 changed files
with
7 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 |
---|---|---|
|
@@ -59,6 +59,7 @@ echo " - WMAgent Number : $AGENT_NUMBER" | |
echo " - WMAgent Relational DB type : $AGENT_FLAVOR" | ||
echo " - Python Version : $(python --version)" | ||
echo " - Python Module path : $pythonLib" | ||
echo " - Current time : $(date -Im)" | ||
echo "=======================================================" | ||
echo | ||
|
||
|
@@ -324,14 +325,14 @@ set_cronjob() { | |
|
||
# Populating proxy related cronjobs | ||
crontab -u $WMA_USER - <<EOF | ||
55 */12 * * * $WMA_MANAGE_DIR/manage renew-proxy | ||
55 */12 * * * date -Im >> $WMA_LOG_DIR/renew-proxy.log && $WMA_MANAGE_DIR/manage renew-proxy 2>&1 >> $WMA_LOG_DIR/renew-proxy.log | ||
58 */12 * * * python $WMA_DEPLOY_DIR/deploy/checkProxy.py --proxy /data/certs/myproxy.pem --time 120 --send-mail True --mail [email protected] | ||
*/15 * * * * source $WMA_DEPLOY_DIR/deploy/restartComponent.sh > /dev/null | ||
EOF | ||
let errVal+=$? | ||
|
||
# Populating CouchDB related cronjobs | ||
wmagent-couchapp-init | ||
wmagent-couchapp-init --only-cron | ||
let errVal+=$? | ||
|
||
[[ $errVal -eq 0 ]] || { | ||
|
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