The behavior you describe can be caused by either:
1) The user running the service script is not the root user (UID=0)
2) The process is blocking on an I/O operation, and cannot stop until it completes
Assuming you ARE running as a root user (either logged in as root [bad admin], or using su or sudo to gain root privs [good admin]), then the issue appears to be one tied to an I/O operation (there are a few other possibilities, but they are RARE when compared to I/O blocks).
Check your system syslog message file (/var/log/messages) and see if you are perhaps having disk problems.
you might also post here the following:
a) the contents of /etc/init.d/smb (it is USUALLY named smb, not samba)
b) the output of the command "ps -aefww | grep bd" performed BEFORE you try to stop Samba
c) the output of the command "bash -x /etc/init.d/smb stop" (this will stop samba, and the output will be long!)
d) the output of the command "ps -aefww | grep bd" performed AFTER you try to stop Samba
e) the output of the command "bash -x /etc/init.d/smb start" (this will start samba, and the output will be long!)
d) the output of the command "ps -aefww | grep bd" performed AFTER you try to start Samba
Of course, if your samba init.d file really IS named sambe, run /etc/init.d/samba above, instead of smb.
I look forward to your reply!
Dan
IT4SOHO
Main Topics
Browse All Topics





by: phlipmodePosted on 2009-08-06 at 05:08:13ID: 25032273
ok, now its getting even more weired.
i can not stop any other service.
there is always the message showing up, that the service is getting stopped, but it never ends, and no service is stopped...
anyone an idea, why this happens?
thx