On Wed, Aug 13, 2008 at 04:36:47PM +0200, Tomáš Šafařík wrote:
> Hi,
>
> this it very weird. I would think these two commands will do the same  
> (except for verbosity), but they don't:
>
> 1:
> # /etc/init.d/cpufreqd stop ; /etc/init.d/cpufreqd start ;  
> /etc/init.d/cpufreqd restart ; ps -e | grep cpufreqdStopping CPU  
> Frequency daemon: cpufreqdTerminated
> Starting CPU Frequency daemon: cpufreqd.
> Restarting CPU Frequency daemon: cpufreqdTerminated

did this problem happen with the previous version (the one in
testing/lenny)?

> 2:
> ~# /etc/init.d/cpufreqd stop ; /etc/init.d/cpufreqd start ; sh -x  
> /etc/init.d/cpufreqd restart ; ps -e | grep cpufreqd
> Stopping CPU Frequency daemon: cpufreqd.
> Starting CPU Frequency daemon: cpufreqd.
> + 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
> ++ FANCYTTY=
> ++ '[' -e /etc/lsb-base-logging.sh ']'
> ++ true
> + . /etc/default/cpufreqd
> ++ CPUFREQ_CPU_MODULE=
> ++ CPUFREQ_GOV_MODULES=auto
> + test -x /usr/sbin/cpufreqd
> + test -r /etc/cpufreqd.conf
> + set -e
> + retval=0
> + case "$1" in
> + log_daemon_msg 'Restarting CPU Frequency daemon' cpufreqd
> + '[' -z 'Restarting CPU Frequency daemon' ']'
> + log_daemon_msg_pre 'Restarting CPU Frequency daemon' cpufreqd
> + :
> + '[' -z cpufreqd ']'
> + echo -n 'Restarting CPU Frequency daemon: cpufreqd'
> Restarting CPU Frequency daemon: cpufreqd+ log_daemon_msg_post  
> 'Restarting CPU Frequency daemon' cpufreqd
> + :
> + killproc /usr/sbin/cpufreqd
> + local pidfile sig status base i name_param is_term_sig
> + pidfile=
> + name_param=
> + is_term_sig=no
> + OPTIND=1
> + getopts p: opt
> + shift 0
> + base=cpufreqd
> + '[' '!' ']'
> + name_param='--name cpufreqd'
> ++ echo
> ++ sed -e 's/^-\(.*\)/\1/'
> + sig=
> ++ echo
> ++ sed -e 's/^SIG\(.*\)/\1/'
> + sig=
> + '[' -z '' -o '' = 15 -o '' = TERM ']'
> + is_term_sig=yes
> + status=0
> + '[' '!' yes = yes ']'
> + /sbin/start-stop-daemon --stop --quiet --oknodo --name cpufreqd
> + '[' 0 = 1 ']'
> + '[' 0 = 0 -a yes = yes -a '' ']'
> + return 0
> + sleep 1
> + check_for_cpufreq_support
> + '[' -d /sys/devices/system/cpu/cpu0/cpufreq ']'
> + return 0
> + start_daemon /usr/sbin/cpufreqd -f /etc/cpufreqd.conf
> + local force nice pidfile exec i
> + force=0
> + nice=0
> + pidfile=/dev/null
> + OPTIND=1
> + getopts fn:p: opt
> + shift 0
> + '[' /usr/sbin/cpufreqd = -- ']'
> + exec=/usr/sbin/cpufreqd
> + shift
> + '[' 0 = 1 ']'
> + '[' /dev/null ']'
> + /sbin/start-stop-daemon --start --nicelevel 0 --quiet --exec  
> /usr/sbin/cpufreqd --oknodo --pidfile /dev/null -- -f /etc/cpufreqd.conf
> + log_end_msg 0
> + '[' -z 0 ']'
> + retval=0
> + log_end_msg_pre 0
> + :
> + log_use_fancy_output
> + TPUT=/usr/bin/tput
> + EXPR=/usr/bin/expr
> + '[' -t 1 ']'
> + '[' xxterm '!=' '' ']'
> + '[' xxterm '!=' xdumb ']'
> + '[' -x /usr/bin/tput ']'
> + '[' -x /usr/bin/expr ']'
> + /usr/bin/tput hpa 60
> + /usr/bin/tput setaf 1
> + '[' -z ']'
> + FANCYTTY=1
> + case "$FANCYTTY" in
> + true
> ++ /usr/bin/tput setaf 1
> + RED=''
> ++ /usr/bin/tput setaf 3
> + YELLOW=''
> ++ /usr/bin/tput op
> + NORMAL=''
> + '[' 0 -eq 0 ']'
> + echo .
> .
> + log_end_msg_post 0
> + :
> + return 0
> + exit 0
> 12482 ?        00:00:00 cpufreqd
>
> I mean - after first (1) cpufreqd is not running after second (2) it is...
>
> I don't understand why. Am I doing st wrong?

I'll look at this later when I'll return at home.

thanks
-- 
mattia
:wq!



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

Reply via email to