AccessGrid.org

Scheduling useful tasks

The following section provides information on how you can easily implement scheduling of useful tasks that you might need to have as part of your Access Grid node.

Restarting the Beacon

If you have installed the multicast beacon, it is recommended that you regularly restart the beacon. This has the advantage of:

  • starting the software if the machine has been shutdown or restarted and the beacon was forgotten to be started
  • If the beacon isn’t running correctly, as sometimes the beacon can be using 100% CPU utilization, a restart will resolve this.
  • I have found in the past that regular restart causes the software to run more smoothly.

Therefore, by implementing the following, it will cause the software to be restarted at midnight every night.

  • Start a terminal session and log-in as "super-user".
  • Issue the command crontab -e.
  • Then by pressing the “i” key to insert the following into the crontab file:
0 0 * * * /sbin/service beacon restart

  • Hit the "Esc" key and the type :wq to "Write and Quit", which will exit editing the crontab file.

Restarting the BridgeServer (Need to develop some more)

If you have installed a unicast Bridge, it is recommended that you regularly restart the service on a semi-regular basis. This has the advantage of:

  • Ensuring the unicast bridge is restarted, if the machine has been shutdown or rebooted; and
  • Regular restarting causes the software to run more smoothly.

Therefore, if you have configured and are running a unicast bridgeserver (An install guide can be found here), I suggest you restart the "BridgeServer" by using an appropriate shell script. By implementing the following, the software will be restarted at midnight every night.

  • Start a terminal session as the standard user
  • Issue the command crontab -e.
  • Then by pressing the “i” key to insert, enter the following into the crontab file:
0 0 * * * /location/of/bridge_script/<scriptname>

Note that within the http://www.accessgrid.org/node/1928 guide for configuring aunicast bridge, a "script" BridgeServer.sh was suggested.

  • Hit the "Esc" key and the type :wq to "Write and Quit", which will exit editing the crontab file.

login or register to post comments