aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Start amuled & amuleweb in a script  (Read 1799 times)

yozhhh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Start amuled & amuleweb in a script
« on: September 18, 2006, 01:35:02 PM »

A wish to start amuled and then amuleweb in a script. It works fine with "sleep 20" between "amuled" and "amuleweb" if I don't use ipfilter.dat. With ipfilter.dat, 20 seconds are not more enough (this is an old PC, linux without X), and amuleweb exits after 10 sec with:
"CECSocket error: The timeout for this operation expired"
Sometimes amuleweb does not exit but also does not respond :(
Question: how can I determine in my script that amuled is not only started (ps -A|grep amuled is therefore not a solution) but has also succesfully loaded ipfilter.dat and is ready for the connection to amuleweb?
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Start amuled & amuleweb in a script
« Reply #1 on: September 18, 2006, 02:05:41 PM »

Why don't you let amuled start amuleweb? All you have to do is to enable the webserver in the amule.conf-file.
Code: [Select]
[WebServer]
Enabled=1
(supposed that everything is already configured, see wiki for configuring help)
Logged

yozhhh

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Start amuled & amuleweb in a script
« Reply #2 on: September 18, 2006, 02:13:01 PM »

Thnak you, it works :)
Logged