aMule Forum

English => Feature requests => Topic started by: fsaction on April 08, 2006, 01:50:51 PM

Title: amuleweb as daemon
Post by: fsaction on April 08, 2006, 01:50:51 PM
Hi,

it would be nice to run amuleweb as a daemon like amuled with the -f option.
Title: Re: amuleweb as daemon
Post by: vdb on April 08, 2006, 01:56:25 PM
Well, that's an easy one: Use the option "Enable=1" in the [WebServer] section of amule.conf and voila, the daemon starts up the webserver as a daemon as well. No strings attached.
Title: Re: amuleweb as daemon
Post by: fsaction on April 08, 2006, 02:00:05 PM
But I'm running 2 instances auf amuleweb.
And with the option in amule.conf I can only run one
Title: Re: amuleweb as daemon
Post by: lfroen on April 08, 2006, 05:15:56 PM
You running 2 instances of webserver for same core ? I fail to see how that can be usefull, while being technically possible. Out of curiosity - can you explain why do you need it ?
Title: Re: amuleweb as daemon
Post by: AnimAlf on April 08, 2006, 06:42:19 PM
firts, Sorry for my very poor english

i run amuled with the initd script provided by this ebuild (http://www.engendro.sytes.net/gentoo/net-p2p/amule-cvs/amule-cvs-3.ebuild) from this thread (http://forum.amule.org/thread.php?threadid=5732) in Gentoo Linux

why, there are an amuleweb initd script in this ebuild? I don't understand the meaning of this script

because when de the amuled start, automatic webserver start also.

please

thanks
Title: Re: amuleweb as daemon
Post by: fsaction on April 09, 2006, 02:54:00 AM
One Instance I use to administrate amuled there I use a modified "chicane" template and the second instance is a template which I parse with php to integrate it in a user-based webpage so users only see their downloads and i can use quotas over a mysql-db and some other features.

I wrote this thread because I have some problems with screen and start-stop-daemon.
With screen amuleweb crashes after I access with a web-browser.
And when I use start-stop-deamon the amuleweb process use 100% cpu.
Title: Re: amuleweb as daemon
Post by: lfroen on April 09, 2006, 06:18:41 AM
Quote
With screen amuleweb crashes after I access with a web-browser.
And when I use start-stop-deamon the amuleweb process use 100% cpu.

Those looks like real issues. Please post version of amule you use and complete setup. I may have to take a look on templates you use.
Title: Re: amuleweb as daemon
Post by: fsaction on April 09, 2006, 05:23:05 PM
aMule Version is 2.1.1

What do you mean with "complete setup" - the content of amule.conf?

When I use the chicane template  it's the same problem.

And I'm running amule in a vserver because I have 2 internet connections, so aMule uses one and on the other I can run other services.

Meanwhile I have found out that when I not detach the screen session it runs fine.
But I don't know how to make a script which starts a screen session and run amuleweb without detaching.