aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: Probleme with amule-daemon  (Read 10778 times)

Yionel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Probleme with amule-daemon
« on: January 22, 2010, 03:21:15 PM »

Hi,
I have installed amule on my lenny debian server without gui and configurated the amule.conf.
When I send the command : /etc/init.d/amule-daemon start

Nothing happend !

Can you help me ?

Code: [Select]
yonk@debian:~$ /etc/init.d/amule-daemon start
yonk@debian:~$
yonk@debian:~$ ps -aux | grep -i amule
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
yonk      2591  0.0  0.0   3116   788 pts/3    S+   15:40   0:00 grep -i amule
« Last Edit: January 22, 2010, 03:41:09 PM by Yionel »
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Probleme with amule-daemon
« Reply #1 on: January 22, 2010, 08:30:37 PM »

What's in aMule's logfile?
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

Yionel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Probleme with amule-daemon
« Reply #2 on: January 22, 2010, 08:34:19 PM »

What's in aMule's logfile?

Nothing in the log file.
At the beginning, amule works and was connected to a server. I have delete logfile and if I send /etc/init.d/amule-daemon start, there is not logfile created :/
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Probleme with amule-daemon
« Reply #3 on: January 22, 2010, 08:40:22 PM »

Well, something wrong with the /etc/init.d/amule-daemon script I guess. Debian problem probably.
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

Yionel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Probleme with amule-daemon
« Reply #4 on: January 22, 2010, 08:42:10 PM »

Well, something wrong with the /etc/init.d/amule-daemon script I guess. Debian problem probably.

And what I have to do ?
Where can I have this script ?
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Probleme with amule-daemon
« Reply #5 on: January 22, 2010, 10:12:25 PM »

Well, something wrong with the /etc/init.d/amule-daemon script I guess. Debian problem probably.

And what I have to do ?
Where can I have this script ?

You could open it with a text editor (e.g. "vim /etc/init.d/amule-daemon") and copy/paste the content of it here  so we can take a closer look.
Logged

Yionel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Probleme with amule-daemon
« Reply #6 on: January 22, 2010, 10:14:29 PM »

Well, something wrong with the /etc/init.d/amule-daemon script I guess. Debian problem probably.

And what I have to do ?
Where can I have this script ?

You could open it with a text editor (e.g. "vim /etc/init.d/amule-daemon") and copy/paste the content of it here  so we can take a closer look.

Code: [Select]
#! /bin/sh
### BEGIN INIT INFO
# Provides:          amule-daemon
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      $network
# Should-Stop:       $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Daemonized version of aMule.
# Description:       Starts the aMule daemon with the user specified in
#                    /etc/default/amule-daemon.
### END INIT INFO

PATH=/sbin:/usr/sbin:/bin:/usr/bin

PROGNAME=amuled
DESC="aMule daemon"
PKGNAME="amule-daemon"
DAEMON=/usr/bin/amuled
SCRIPTNAME=/etc/init.d/$PKGNAME
WRAPPER=/usr/share/amule/amuled_home_wrapper.sh

[ -x "$DAEMON" ] || exit 0
[ -r /etc/default/$PKGNAME ] && . /etc/default/$PKGNAME

. /lib/init/vars.sh # has VERBOSE
. /lib/lsb/init-functions

if [ -z "$AMULED_USER" ]; then
    log_warning_msg \
"Not starting $DESC, AMULED_USER not set in /etc/default/$PKGNAME."
    exit 0
fi

do_start()
{
# Return
#   0 if daemon has been started
#   1 if daemon was already running
#   2 if daemon could not be started
start-stop-daemon --start --quiet --exec $DAEMON --user "$AMULED_USER" --chuid "$AMULED_USER" --test >/dev/null || return 1
start-stop-daemon --start --quiet --exec $WRAPPER --user "$AMULED_USER" --chuid "$AMULED_USER" >/dev/null || return 2
}

do_stop()
{
# Return
#   0 if daemon has been stopped
#   1 if daemon was already stopped
#   2 if daemon could not be stopped
start-stop-daemon --stop --quiet --retry="TERM/30/KILL/5" --exec $DAEMON --user "$AMULED_USER" --chuid "$AMULED_USER"
return "$?"
}


case "$1" in
  start)
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$PROGNAME"
do_start
case "$?" in
0) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
1) [ "$VERBOSE" != no ] && \
log_progress_msg "(already running)" && log_end_msg 0 ;;
2) [ "$VERBOSE" != no ] && log_end_msg 1; exit 1 ;;
esac
;;
  stop)
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$PROGNAME"
do_stop
case "$?" in
0 | 1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
2)     [ "$VERBOSE" != no ] && log_end_msg 1; exit 1 ;;
esac
;;
  restart|force-reload)
log_daemon_msg "Restarting $DESC" "$PROGNAME"
do_stop
case "$?" in
  0 | 1)
do_start
case "$?" in
0) log_end_msg 0 ;;
1) log_end_msg 1; exit 1 ;; # Old process is still running
*) log_end_msg 1; exit 1 ;; # Failed to start
esac
;;
  *)
  # Failed to stop
log_end_msg 1
exit 1
;;
esac
;;
  *)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 3
;;
esac

exit 0
Logged

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: Probleme with amule-daemon
« Reply #7 on: January 23, 2010, 09:25:29 AM »

Quote
# Description:       Starts the aMule daemon with the user specified in
#                    /etc/default/amule-daemon.
Did you change the user in this file?
Logged

Yionel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Probleme with amule-daemon
« Reply #8 on: January 23, 2010, 08:55:17 PM »

Quote
# Description:       Starts the aMule daemon with the user specified in
#                    /etc/default/amule-daemon.
Did you change the user in this file?

Yes !

In the file there is WRAPPER=/usr/share/amule/amuled_home_wrapper.sh
And I haven't got files /usr/share/amule/ ! only directory
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Probleme with amule-daemon
« Reply #9 on: January 24, 2010, 07:48:36 PM »

Please open the file in an editor and add the following line above "PATH=/..." in line #15:
Code: [Select]
set -x(Note: there is a blank between "set" and "-x" !)

Save the changes to the script and execute it again. Then please post the output here.
Logged

Yionel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Probleme with amule-daemon
« Reply #10 on: January 24, 2010, 08:27:11 PM »

Please open the file in an editor and add the following line above "PATH=/..." in line #15:
Code: [Select]
set -x(Note: there is a blank between "set" and "-x" !)

Save the changes to the script and execute it again. Then please post the output here.

The output :

Code: [Select]
yonk@debian:~$ /etc/init.d/amule-daemon start
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ PROGNAME=amuled
+ DESC='aMule daemon'
+ PKGNAME=amule-daemon
+ DAEMON=/usr/bin/amuled
+ SCRIPTNAME=/etc/init.d/amule-daemon
+ WRAPPER=/usr/share/amule/amuled_home_wrapper.sh
+ '[' -x /usr/bin/amuled ']'
+ exit 0
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Probleme with amule-daemon
« Reply #11 on: January 24, 2010, 08:42:13 PM »

Are you sure amuled is still installed. What says "apt-cache policy amule-daemon"
Logged
Homefucking is killing prostitution

Yionel

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 14
Re: Probleme with amule-daemon
« Reply #12 on: January 25, 2010, 01:38:08 AM »

Are you sure amuled is still installed. What says "apt-cache policy amule-daemon"

Code: [Select]
debian:/home/yonk# apt-cache policy amule-daemon
amule-daemon:
  Installed: 2.2.6-1
  Candidate: 2.2.6-1
  Version table:
 *** 2.2.6-1 0
        500 http://www.vollstreckernet.de stable/amule-stable Packages
        100 /var/lib/dpkg/status
     2.2.1-1+lenny2 0
        500 http://ftp.fr.debian.org lenny/main Packages
        500 http://security.debian.org lenny/updates/main Packages


Code: [Select]
debian:/home/yonk# /etc/init.d/amule-daemon start
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin
+ PROGNAME=amuled
+ DESC='aMule daemon'
+ PKGNAME=amule-daemon
+ DAEMON=/usr/bin/amuled
+ SCRIPTNAME=/etc/init.d/amule-daemon
+ WRAPPER=/usr/share/amule/amuled_home_wrapper.sh
+ '[' -x /usr/bin/amuled ']'
+ '[' -r /etc/default/amule-daemon ']'
+ . /etc/default/amule-daemon
++ AMULED_USER=yonk
++ AMULED_HOME=
+ . /lib/init/vars.sh
++ '[' -f /etc/default/rcS ']'
++ . /etc/default/rcS
+++ TMPTIME=0
+++ SULOGIN=no
+++ DELAYLOGIN=no
+++ UTC=yes
+++ VERBOSE=no
+++ FSCKFIX=no
+++ RAMRUN=no
+++ RAMLOCK=no
++ '[' -r /proc/cmdline ']'
++ grep -q ' noswap' /proc/cmdline
++ NOSWAP=no
++ '[' '!' -e /proc/cmdline ']'
++ egrep -qw quiet /proc/cmdline
++ VERBOSE=no
++ '[' '' ']'
++ true
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ '[' -z yonk ']'
+ case "$1" in
+ '[' no '!=' no ']'
+ do_start
+ start-stop-daemon --start --quiet --exec /usr/bin/amuled --user yonk --chuid yonk --test
+ start-stop-daemon --start --quiet --exec /usr/share/amule/amuled_home_wrapper.sh --user yonk --chuid yonk
start-stop-daemon: stat /usr/share/amule/amuled_home_wrapper.sh: No such file or directory (No such file or directory)
+ return 2
+ case "$?" in
+ '[' no '!=' no ']'
+ exit 1
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Probleme with amule-daemon
« Reply #13 on: January 25, 2010, 06:39:43 AM »

Like you said, the problem is that "/usr/share/amule/amuled_home_wrapper.sh" is not there. Have you tried searching for it?
Maybe "locate amuled_home_wrapper.sh" or "find / -name amuled_home_wrapper.sh" can help you. Unfortunately I don't know where this file comes from.
Logged

Vollstrecker

  • Administrator
  • Hero Member
  • *****
  • Karma: 67
  • Offline Offline
  • Posts: 1549
  • Unofficial Debian Packager
    • http://vollstreckernet.de
Re: Probleme with amule-daemon
« Reply #14 on: January 25, 2010, 09:47:05 AM »

Like the init-script and the /etc/default file, the wrapper comes from officisal repo and isn't included in my packages.  Would in the first post be mentioned that he uses my pkg's, this all would be clear. I think I bump the init-script up to the top of my todo-list. The wrapper is just there, because the one that wrote the init script wasn't able to read the help of amuled. start-stop-daemontdoesn't set the env correctly at the point amuled needs it, so this is why I implemented --config-dir switch
Logged
Homefucking is killing prostitution
Pages: [1] 2