Daemonized Azureus
From AzureusWiki
Please note this guide is intended for *nix operating systems with an installed perl interpreter.
If you want to run Azureus as a deamon (under a POSIX compliant system) and not through a screen session you have to detatch it from the current shell, this can be performed with a little perlscript.
First you have to setup azureus to run without a GUI, see Console UI for a howto.
Probably you'll want to run Azureus with the WebUI , thus you have to install and configure it first.
Finally create an executable (+x) azureusd.pl file containing the following code:
#!/usr/bin/perl
use POSIX 'setsid';
open STDIN, "/dev/null";
open STDOUT,">/dev/null";
open STDERR,">/dev/null";
exit if fork > 0;
setsid;
exec("java -jar Azureus2.jar --ui=console");
Place this file in Azureus' binary directory and execute it.
The same can be done simply by running Azureus like this:
java -jar Azureus2.jar --ui=console >/dev/null 2>&1 </dev/null &
