checkdeki is a BASH script that is run as a cron job. It checks the status of your MindTouch install and if it detects that it isn't running properly, it will automatically restart the MindTouch API.
After completing this tutorial you will have checkdeki running on your system
cd ~ wget https://svn.mindtouch.com/source/public/dekiwiki/10.0.2/src/scripts/checkdeki
chmod 755 ~/checkdeki
mv ~/checkdeki /usr/local/bin/checkdeki.sh
crontab -e
*/10 * * * * sh /usr/local/bin/checkdeki.sh
Checkdeki has two configurable variables. They are as follows:
MEM_THRESHOLD=300000 # set memory threshold at 300MB EMAIL="" # change to appropriate email address
MEM_THRESHOLD is the memory limit for Mono. If Mono exceeds this amount of memory usage, it will cause MindTouch to restart. We suggest you set this to 1/3rd of your system RAM.
The EMAIL variable is the e-mail address you would like checkdeki to e-mail when it restarts the API. By default, this e-mail will be sent to the root account on the server. To set the variable to send e-mail to your e-mail address, replace the username@example.com in the line below with your email address.
EMAIL="username@example.com"
If the api is restarting frequently, it is recommended to review the API logs to see if there is a fatal error causing the crash.
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by