Difference between revisions of "Let aMule restart on KAD disconnect"
From AMule Project FAQ
Line 9: | Line 9: | ||
Add this to your crontab (crontab -e): | Add this to your crontab (crontab -e): | ||
* */2 * * * PATH_TO_SCRIPT | * */2 * * * PATH_TO_SCRIPT | ||
− | This will check your amuled half-hourly and checks wether KAD is still running and if | + | This will check your amuled half-hourly and checks wether KAD is still running and if not restarts it. |
I made this script, because I experienced often KAD disconnects. | I made this script, because I experienced often KAD disconnects. |
Revision as of 18:48, 17 August 2006
This HOWTO assumes that you have a working /etc/init.d/amuled script.
Put this in a file:
#!/bin/sh if grep 'Kad: Connected (ok)' | wc -l` != "1" ; then /etc/init.d/amuled restart fi
Add this to your crontab (crontab -e):
* */2 * * * PATH_TO_SCRIPT
This will check your amuled half-hourly and checks wether KAD is still running and if not restarts it.
I made this script, because I experienced often KAD disconnects.