[CentOS] Odd failure of smbd to start from init.d - CentOS 5.4

Whit Blauvelt whit at transpect.com
Fri May 21 18:32:54 UTC 2010


On Fri, May 21, 2010 at 03:39:53AM -0700, John Doe wrote:

> What's the return value?
>   service smb start
>   echo $?

# service smb start
Starting SMB services:                                     [  OK  ]
Starting NMB services: 

# echo $?
0

# ps aux | grep mbd
root      2520  0.0  0.0 107732  1548 ?        Ss   14:00   0:00 nmbd -D
root      4545  0.0  0.0  61152   744 pts/1    S+   14:27   0:00 grep mbd

So it returns 0, but it's not there. That's even if I run it all together:

# service smb restart;echo $?;ps aux | grep mbd | grep -v grep
Shutting down SMB services:                                [FAILED]
Shutting down NMB services:                                [  OK  ]
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]
0
root      4753  0.0  0.0 108456  1464 ?        Ss   14:29   0:00 nmbd -D

What you see there is the failed shutdown of smbd, since the start just
before didn't work for long, then the successful nmbd shutdown, followed by
the apparently successful run of both of them, exit 0, but in fact only
nmbd, an instant later, is in the process table.

That missing second [ OK ] in the top instance is occassional (the only
inconsistent feature I'm seeing); and note nmbd is behaving fine even when
it doesn't show.

Whit



More information about the CentOS mailing list