aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amuleweb as daemon  (Read 3640 times)

fsaction

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
amuleweb as daemon
« 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.
Logged

vdb

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 215
Re: amuleweb as daemon
« Reply #1 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.
Logged
A waste is a terrible thing to mind.

fsaction

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: amuleweb as daemon
« Reply #2 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
Logged

lfroen

  • Guest
Re: amuleweb as daemon
« Reply #3 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 ?
Logged

AnimAlf

  • Full Member
  • ***
  • Karma: 3
  • Offline Offline
  • Posts: 225
    • Home
Re: amuleweb as daemon
« Reply #4 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 from this thread 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

fsaction

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: amuleweb as daemon
« Reply #5 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.
Logged

lfroen

  • Guest
Re: amuleweb as daemon
« Reply #6 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.
Logged

fsaction

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 24
Re: amuleweb as daemon
« Reply #7 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.
« Last Edit: April 09, 2006, 05:24:04 PM by fsaction »
Logged