Hello,
If u are not always in front of screen, u can use the ps-watcher program to restart automaticaly aMule when it crashes:
http://ps-watcher.sourceforge.net/make a config file like ~/.pswatcher like this:
[code:1]# Restart aMule if it has crashed
[amule]
occurs = none
action = /opt/amule/bin/amule >/dev/tty10 2>/dev/tty11 &
# If aMule is running, do some backup
[/opt/amule/bin/amule]
occurs = first
action =<
mkdir -p ~/.aMule/backup/met
cp -f ~/.aMule/Temp/*.met ~/.aMule/backup/met/
cp -f client.met known.met server.met ~/.aMule/backup/
cp -f adresses.dat shareddir.dat ipfilter.dat amfriends.dat ~/.aMule/backup/
EOT[/code:1]
Run
ps-watcher --config ~/.pswatcher --daemon
after starting aMule
Or, u can also create a user crontab like this:
[code:1]00 * * * * /opt/pswatcher/bin/ps-watcher --config ~/.pswatcher --nodaemon --sleep -1
15 * * * * /opt/pswatcher/bin/ps-watcher --config ~/.pswatcher --nodaemon --sleep -1
30 * * * * /opt/pswatcher/bin/ps-watcher --config ~/.pswatcher --nodaemon --sleep -1
45 * * * * /opt/pswatcher/bin/ps-watcher --config ~/.pswatcher --nodaemon --sleep -1[/code:1]
You can also complicate the thing with counting number of craches ...
And you will have a nice crash watcher like in windows mods like eChanblard
the polish