|
From: Matt <mat...@us...> - 2008-01-21 19:27:59
|
Update of /cvsroot/openqrm/base/devel/ng/openqrm/src/etc/templates In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12436/devel/ng/openqrm/src/etc/templates Modified Files: openqrm-linuxrc Log Message: added basic monitoring framework Index: openqrm-linuxrc =================================================================== RCS file: /cvsroot/openqrm/base/devel/ng/openqrm/src/etc/templates/openqrm-linuxrc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** openqrm-linuxrc 20 Jan 2008 18:59:58 -0000 1.8 --- openqrm-linuxrc 21 Jan 2008 19:27:56 -0000 1.9 *************** *** 60,69 **** # this will add the resource to the openQRM-server echo "New resource detected ! Adding to the openQRM-server at $OPENQRM_SERVER_IP_ADDRESS" ! wget -O /dev/null "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/action/resource-action.php?resource_command=new_resource&resource_mac=$OPENQRM_RESOURCE_MAC_ADDRESS&resource_ip=$OPENQRM_RESOURCE_IP_ADDRESS&resource_id=$id" fi # get resource parameter echo "Getting resource-parameters ..." ! wget -O $OPENQRM_RESOURCE_PARAMETER_FILE "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/action/resource-action.php?resource_command=get_parameter&resource_mac=$OPENQRM_RESOURCE_MAC_ADDRESS" . $OPENQRM_RESOURCE_PARAMETER_FILE --- 60,69 ---- # this will add the resource to the openQRM-server echo "New resource detected ! Adding to the openQRM-server at $OPENQRM_SERVER_IP_ADDRESS" ! wget -q -O /dev/null "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/action/resource-action.php?resource_command=new_resource&resource_mac=$OPENQRM_RESOURCE_MAC_ADDRESS&resource_ip=$OPENQRM_RESOURCE_IP_ADDRESS&resource_id=$id" fi # get resource parameter echo "Getting resource-parameters ..." ! wget -q -O $OPENQRM_RESOURCE_PARAMETER_FILE "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/action/resource-action.php?resource_command=get_parameter&resource_mac=$OPENQRM_RESOURCE_MAC_ADDRESS" . $OPENQRM_RESOURCE_PARAMETER_FILE *************** *** 79,83 **** echo "Getting openqrm-client package" cd / ! wget "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/boot-service/openqrm-client.tgz" tar -xzf openqrm-client.tgz rm -f openqrm-client.tgz --- 79,83 ---- echo "Getting openqrm-client package" cd / ! wget -q "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/boot-service/openqrm-client.tgz" tar -xzf openqrm-client.tgz rm -f openqrm-client.tgz *************** *** 86,90 **** # send idle/available echo "Sending idle/available to openQRM-server at $OPENQRM_SERVER_IP_ADDRESS" ! wget -O /dev/null "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/action/resource-action.php?resource_command=update_status&resource_id=$resource_id&resource_state=idle&resource_event=available" # rcs0 will be started here from init --- 86,90 ---- # send idle/available echo "Sending idle/available to openQRM-server at $OPENQRM_SERVER_IP_ADDRESS" ! wget -q -O /dev/null "http://$OPENQRM_SERVER_IP_ADDRESS/openqrm/action/resource-action.php?resource_command=update_status&resource_id=$resource_id&resource_state=idle&resource_event=available" # rcs0 will be started here from init |