Dan Nicholson wrote:
> On 7/20/07, Jens Stroebel <[EMAIL PROTECTED]> wrote:
[...snip...]
>> the nmbd process seems unwilling to die, needing 2 times
>> killproc here.
> That's strange. I would try running things manually from a shell with
> some debugging.
>
> # /usr/sbin/nmbd -D -S -d1
> # read pid </var/run/nmbd.pid
> # kill $pid
This kills both instances of nmbd which are present after starting it up...
> It should die normally from receiving TERM. It could also be some
> stupidity in killproc. You may want to try running with tracing to see
> if anything weird jumps out.
> # . /etc/rc.d/init.d/functions
> # set -x
> # killproc /usr/sbin/nmbd
I did that and indeed, something I consider wierd did show up.
After starting:
[EMAIL PROTECTED]:/usr/src/rpm> /usr/sbin/nmbd -D
[EMAIL PROTECTED]:/usr/src/rpm> ps -ef |grep nmb
root 26943 1 0 15:29 ? 00:00:00 /usr/sbin/nmbd -D
root 26944 26943 0 15:29 ? 00:00:00 /usr/sbin/nmbd -D
there are 2 nmd processes present.
Now doing 'killproc /usr/sbin/nmbd' leaves a new one at it's failing exit:
[EMAIL PROTECTED]:/usr/src/rpm> ps -ef |grep nmb
root 27127 1 0 15:31 ? 00:00:00 /usr/sbin/nmbd -D
This process gets found at the end of killproc run and therefor the
script exists with a failure.
I've attached a log of the trace'd killproc call.
greets,
jens
--
[EMAIL PROTECTED]
23.....56.......drifting
By caffeine alone I set my mind in motion, By the beans of Java
do thoughts acquire speed, hands acquire shaking, the shaking
becomes a warning, By caffeine alone do I set my mind in motion
+ local pidfile=
+ local killsig=TERM
+ pidlist=
+ '[' -n '' ']'
+ true
+ case "${1}" in
+ break
+ '[' 1 = 2 ']'
+ '[' 1 '!=' 1 ']'
+ '[' -z '' ']'
+ pidofproc -s /usr/sbin/nmbd
+ local pidfile=
+ local lpids=
+ local silent=
+ pidlist=
+ true
+ case "${1}" in
+ silent=1
+ shift 1
+ true
+ case "${1}" in
+ break
+ '[' 1 '!=' 1 ']'
+ '[' -n '' ']'
++ pidof -o 24849 -o 2652 -x /usr/sbin/nmbd
+ pidlist='26944 26943'
+ '[' 1 '!=' 1 ']'
+ '[' -n '26944 26943' ']'
+ return 0
+ '[' -n '26944 26943' ']'
+ for pid in '${pidlist}'
+ kill -TERM 26944
+ case "${killsig}" in
+ local dtime=3
+ '[' 3 '!=' 0 ']'
+ kill -0 26944
+ sleep 1
+ dtime=2
+ '[' 2 '!=' 0 ']'
+ kill -0 26944
+ break
+ kill -0 26944
+ for pid in '${pidlist}'
+ kill -TERM 26943
+ case "${killsig}" in
+ local dtime=3
+ '[' 3 '!=' 0 ']'
+ kill -0 26943
+ sleep 1
+ dtime=2
+ '[' 2 '!=' 0 ']'
+ kill -0 26943
+ sleep 1
+ dtime=1
+ '[' 1 '!=' 0 ']'
+ kill -0 26943
+ sleep 1
+ dtime=0
+ '[' 0 '!=' 0 ']'
+ kill -0 26943
+ kill -KILL 26943
+ case "${killsig}" in
+ '[' -z '' ']'
+ pidofproc -s /usr/sbin/nmbd
+ local pidfile=
+ local lpids=
+ local silent=
+ pidlist=
+ true
+ case "${1}" in
+ silent=1
+ shift 1
+ true
+ case "${1}" in
+ break
+ '[' 1 '!=' 1 ']'
+ '[' -n '' ']'
++ pidof -o 24849 -o 2652 -x /usr/sbin/nmbd
+ pidlist=27127
+ '[' 1 '!=' 1 ']'
+ '[' -n 27127 ']'
+ return 0
+ '[' 0 '!=' 0 ']'
+ echo_failure
+ echo -n -e '\033[1A\033[0G\033[95G\033[1;34m[\033[1;31m FAIL \033[1;34m]'
[1A[0G[95G[1;34m[[1;31m FAIL [1;34m]+ echo -e '\033[0;39m'
[0;39m
+ boot_mesg_flush
+ STRING_LENGTH=0
+ return 4
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page