automatically restarting crashed application (azureus)
ZIYAD A. M. AL-BATLY
zamb at spymac.com
Wed Apr 20 11:23:58 UTC 2005
On Wed, 2005-04-20 at 19:28 +0900, toyfactory wrote:
> That's great and so simple!
>
> Cheers,
>
> Nick
>
> By the way, does anyone else have problems with Azureus?
>
> On Wed, 20 Apr 2005 11:24:22 +0200, "Simon Santoro"
> <simon.santoro at poste.it> said:
> > toyfactory wrote:
> > > I'm having problems with Azureus, a Java based BitTorrent client. From
> > > time to time, and for no obvious reason, it exits without warning. The
> > > logs indicate some error in the virtual machine, which I have no idea
> > > how to fix. As a workaround I would like to use a script that's capable
> > > of restarting Azureus when it exits. Would this work? Can anyone help
> > > or point me in the right direction?
> >
> > while true; do azureus; done
> >
> > --
> > +S2
>
As Simon wrote. However, what if you want to really quit Azureus? The
moment you click on exit it will start again! (Or you need to be very
fast and hit CTRL+C several times from the shell which will terminate
the application, which, by the way, is not a normal clean exit.) Here's
a trick I've been using for sometime:
while [ -e ~/azureus_work ]; do azureus; sleep 1s; done
You have to create a file called "azureus_work" in your home directory.
Whenever you want to quit Azureus normally, just delete that file and
then exit the application.
Ziyad.
More information about the ubuntu-users
mailing list