Il giorno lun, 21/01/2008 alle 16.25 +0100, Adeodato Simó ha scritto:

> do_stop is a function, and those return codes are the return codes of
> the *function*. Later, when the function is used, it is used like
> this:

ok that was my fault, let's check it deeper (i normally use an amule
fork, so just installed to make a quick check).


> OK, I have no idea why it would do that on your system. Please tell me:
> 
>   1. what your /bin/sh points to (bash, dash?)

bash

>   2. the debugging output of this:
> 
>     # /etc/init.d/amule-daemon start
>     # /etc/init.d/amule-daemon stop


[EMAIL PROTECTED]:~$ sudo /etc/init.d/amule-daemon start; echo $?; pgrep amuled
1
18809
[EMAIL PROTECTED]:~$ pgrep amuled; sudo /etc/init.d/amule-daemon stop; echo $?
18809
1
[EMAIL PROTECTED]:~$ pgrep amuled; sudo /etc/init.d/amule-daemon stop; echo $?
1


>     # /bin/sh -x /etc/init.d/amule-daemon stop


[EMAIL PROTECTED]:~$ sudo /bin/sh -x /etc/init.d/amule-daemon stop
+ 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=oggei
++ AMULED_HOME=/home/oggei
+ . /lib/init/vars.sh
++ '[' -f /etc/default/rcS ']'
++ . /etc/default/rcS
+++ TMPTIME=0
+++ SULOGIN=no
+++ DELAYLOGIN=no
+++ UTC=no
+++ 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
++ '[' '' ']'
++ true
+ . /lib/lsb/init-functions
++ FANCYTTY=
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ '[' -z oggei ']'
+ case "$1" in
+ '[' no '!=' no ']'
+ do_stop
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5
--exec /usr/bin/amuled --user oggei --chuid oggei
+ return 1
+ case "$?" in
+ '[' no '!=' no ']'





Reply via email to