samba: nmbd stopping fails once?

Randy McMurchy randy at linuxfromscratch.org
Fri Jul 20 05:53:53 PDT 2007


Jens Stroebel wrote these words on 07/20/07 07:18 CST:

> I'm experiencing a strange phenomenon when watching the
> 
> 	/etc/rc.d/init.d/samba stop
> 
> happen: the nmbd process seems unwilling to die, needing 2 times
> killproc here.

I'm not seeing the issue here. Perhaps we have different Samba
configurations, or you have more clients attaching/using Samba
services. I can't ever remember noticing a failure, and I usually
watch the bootup and shutdown process, as I do it so infrequently.

What I suppose is odd though, is notice that the .pid files are
not removed when the daemon is stopped.

FWIW:

root at rmlinux: ~ > /etc/rc.d/init.d/samba status
nmbd is running with Process ID(s) 3774.
smbd is running with Process ID(s) 3778 3777.

root at rmlinux: ~ > /etc/rc.d/init.d/samba stop
Stopping smbd...                                                 [  OK  ]
Stopping nmbd...                                                 [  OK  ]

root at rmlinux: ~ > /etc/rc.d/init.d/samba status
/usr/sbin/nmbd is not running but /var/run/nmbd.pid exists.
/usr/sbin/smbd is not running but /var/run/smbd.pid exists.

root at rmlinux: ~ > ps -ef | grep mbd

root at rmlinux: ~ > /etc/rc.d/init.d/samba start
Starting nmbd...                                                 [  OK  ]
Starting smbd...                                                 [  OK  ]

root at rmlinux: ~ > /etc/rc.d/init.d/samba status
nmbd is running with Process ID(s) 6588.
smbd is running with Process ID(s) 6592 6591.

root at rmlinux: ~ > /etc/rc.d/init.d/samba stop
Stopping smbd...                                                 [  OK  ]
Stopping nmbd...                                                 [  OK  ]

root at rmlinux: ~ > /etc/rc.d/init.d/samba status
/usr/sbin/nmbd is not running but /var/run/nmbd.pid exists.
/usr/sbin/smbd is not running but /var/run/smbd.pid exists.

root at rmlinux: ~ > ls -l /var/run/*mbd.pid
-rw-r--r-- 1 root root 5 Jul 20 07:40 /var/run/nmbd.pid
-rw-r--r-- 1 root root 5 Jul 20 07:40 /var/run/smbd.pid

-- 
Randy

rmlscsi: [bogomips 1003.23] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
07:45:00 up 8 days, 52 min, 1 user, load average: 0.01, 0.03, 0.00



More information about the blfs-dev mailing list