Hi Mattia!

On Sam, 03 Jun 2006, Mattia Dongili wrote:
> I can't reproduce it here, can you run the script with -x and send the
> output to see where it hangs?

It hangs in the read pid:
gandalf:~# bash -x /etc/init.d/cpufreqd stop
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/cpufreqd
+ CPUFREQD_CONFFILE=/etc/cpufreqd.conf
+ NAME=cpufreqd
+ DESC='CPU Frequency daemon'
+ . /lib/lsb/init-functions
++ '[' -e /etc/lsb-base-logging.sh ']'
++ true
+ test -x /usr/sbin/cpufreqd
+ test -r /etc/cpufreqd.conf
+ set -e
+ retval=0
+ case "$1" in
+ log_daemon_msg 'Stopping CPU Frequency daemon' cpufreqd
+ '[' -z 'Stopping CPU Frequency daemon' ']'
+ '[' -z cpufreqd ']'
+ echo -n 'Stopping CPU Frequency daemon: cpufreqd'
Stopping CPU Frequency daemon: cpufreqd+ pidofproc /usr/sbin/cpufreqd
+ local pidfile line i pids= status specified pid
++ POSIXLY_CORRECT=1
++ getopt p: /usr/sbin/cpufreqd
+ set -- -- /usr/sbin/cpufreqd
+ pidfile=
+ specified=0
+ for i in '$*'
+ case $i in
+ shift
+ break
+ '[' -z '' ']'
++ basename /usr/sbin/cpufreqd
+ pidfile=/var/run/cpufreqd.pid
+ '[' -f /var/run/cpufreqd.pid ']'
+ read pid

ENTER


+ '[' -n '' ']'
+ return 2
+ log_end_msg 0
+ '[' -z 0 ']'
+ log_use_fancy_output
+ TPUT=/usr/bin/tput
+ EXPR=/usr/bin/expr
+ '[' xxterm '!=' xdumb ']'
+ '[' -x /usr/bin/tput ']'
+ '[' -x /usr/bin/expr ']'
+ /usr/bin/tput hpa 60
+ FANCYTTY=1
+ true
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput op
+ NORMAL=''
+ '[' 0 -eq 0 ']'
+ echo .
.
+ return 0
+ exit 0

In my /lib/lsb/init-functions there is in pidofproc
    if [ -f "$pidfile" ]; then
        read pid
where this comes form.

/lib/lsb/init.-functions is from lsb-base and this is here at 3.1-6.

md5sums of installed file is the same as the one in
/v/l/d/info/lsb-base.md5sums.

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
AITH (n.)
The single bristle that sticks out sideways on a cheap paintbrush.
                        --- Douglas Adams, The Meaning of Liff


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to