Commit db7a9b03 authored by Romain Courteaud's avatar Romain Courteaud

Remove zope_tic_loop script, as we now use TimerService.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8369 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e05efcb
#!/bin/bash
# CMFActivity tic script.
# This script is for a standalone Zope instance running on localhost.
# For clusters, GET distribute with the number of nodes, and GET tic
# on each machine with the corresponding processing_node id.
# Make sure this user exists in the portal, and has Member role
[ -z $AUTH ] && AUTH=zope:zope
[ -z $PORT ] && PORT=9080
[ -z $SITE ] && SITE=erp5
[ -z $TMP ] && TMP=/tmp
echo Starting tic on $SITE:$PORT with $AUTH
while true; do
# distribute on nodes
wget -q -O $TMP/zope_distribute.out http://${AUTH}@localhost:${PORT}/${SITE}/portal_activities/distribute?node_count:int=1
# execute registred activities for this node
wget -q -O $TMP/zope_tic.out http://${AUTH}@localhost:${PORT}/${SITE}/portal_activities/tic?processing_node:int=1
# sample for another node
#wget -q -O $TMP/zope_tic.out http://${AUTH}@anotherhost:${PORT}/${SITE}/portal_activities/tic?processing_node:int=2
# tic alarms
wget -q -O $TMP/zope_alarm_tic.out http://${AUTH}@localhost:${PORT}/${SITE}/portal_alarms/tic
# 10 is recommended on production servers, but 4 is enough for development
sleep 4
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment