aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Amuled script NOT working fine  (Read 2384 times)

P0L

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Amuled script NOT working fine
« on: March 03, 2012, 06:15:53 PM »

Hi everybody, i installed amule 2.3.1 on optware on my dns-325 dlink, i have a problem: when i start amuled in ssh i can open web interface (then amuleweb start normally), instead when amuled starts by amuled bash script amule runs but i can't log into web interface.
I'm going mad for this and i can't find a solution, please help me. :'( :'( Sorry for my bad english.
This is S57amuled.sh:

#!/bin/sh
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:/ffp/opt/bin

start() {
   set backup=$HOME
   echo "Starting amuled..."
   echo "Configuration's setting are located in /opt/share/amule"
   export HOME=/opt/share/amule
   /opt/bin/amuled
        /opt/bin/amuleweb
   export HOME=$backup
   echo "done"
}

stop() {
   echo -n "Shutting down amuled... "
   killall amuled
   killall amuleweb
   echo "done"
}

case "$1" in
   start)
      start
      ;;
   stop)
      stop
      ;;
   restart)
      stop
      sleep 1
      start
      ;;
   *)
      echo "Usage: $0 (start|stop|restart)"
      exit 1
      ;;
esac
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Amuled script NOT working fine
« Reply #1 on: March 03, 2012, 09:47:30 PM »

Insert a delay between amuled and amuleweb (is there a sleep command?).
Probably amuleweb tries to connect before amuled's EC interface is up and so fails.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

P0L

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Amuled script NOT working fine
« Reply #2 on: March 03, 2012, 09:58:02 PM »

Ok, i'll try.
Logged

GonoszTopi

  • The current man in charge of most things.
  • Administrator
  • Hero Member
  • *****
  • Karma: 169
  • Offline Offline
  • Posts: 2685
Re: Amuled script NOT working fine
« Reply #3 on: March 09, 2012, 10:47:57 PM »

Or let the daemon start the webserver.
Logged
concordia cum veritate