error messages on shutdown
greetings
when i shut linux down (Mandrake9) i get two consistent error messages shutting down SMB service.....FAILED shutting down NMB service.....FAILED i don't know what this means. I presume it's not serious as the system seems perfectly OK and stable at every power up What is the problem? |
It couldn't stop Samba, probably due the fact that it's not running ...
|
If you dont want to see those errors take it out of your /etc/rc.d/* directories.
|
could you be a little more specific please
there is a lot of stuff in /etc/rc.d |
if you are running a redhat/mandrake based distro, try
chkconfig --list | grep samba (or) chkconfig --list | grep smb if runlevel 0 = shutdown, do chkconfig --level 0 smb off (i think thats right, i use debian now) To stop it from trying to shut smb down with the machine ..... Cheers Duncan |
below are results from comman
[root@localhost sal]# chkconfig --list | grep smb smb 0:off 1:off 2:off 3:on 4:off 5:on 6:off gotta admit this is WAY beyond where I am so far with linux |
Do you actually WANT samba running at all? if not, turn it completely off in the scripts by
chkconfig smb off If you do want it, but want to get rid of those messages, try chkconfig --level 0 smb off chkconfig --level 5 smb off chkconfig --level 3 smb off Well actually this would have the same affect, looking at your output Give that a go Duncan |
er...
embarrassed shuffle i don't actually know what samba is which would probably indicate that I'm neither using it nor need it is it possible to remove it from my system? |
Just use grep/locate/find in the /etc/rc.d/* directories
|
try "rpm -e samba" to remove it
if that doesn't work, rpm -e samba.. cant remember which works |
rpm -e samba
package samba is not installed hmmmm rpm -e and urpmi are mainly useless seeming to work 1 or 2 times out of every 10 |
well that would explain it.. just follow the chkconfig lines i put, and the problem will go away
cheers |
yes
u ran those lines and rebooted the erros were there as it shut down for reboot but on shutting down after the reboot the erros had gone many thanks |
Pleasure.
If you want to know, since you're learning linux, it's best to learn what is going on, rather than just doing it and not understanding... Under redhat/mandrake, "chkconfig" is the tool most commonly used to control what services start up/shut down with the machine. Linux has different "runlevels" (you can see what runlevel you are in, by typing runlevel at the command prompt). Basically, 2 or 3 is usually multi user mode, and runlevel 6 reboot mode, and runlevel 0 shutdown. You can do chkconfig --list | more, to see a list of all the services on your machine. It will tell you if that service is set to be "on" or "off" (self explanatory) at that particular runlevel. For example, if in chkconfig --list | more (the | more pipes it to the more command, so you can scroll down using the return key) the smb (samba) service is set to "on" for runlevel 0, it means it will try and shut samba down with the machine. If samba isn't running, then you will get a [FAILED] message on shutdown. So you just do chkconfig --level 0 smb off. to turn smb off for runlevel 0. To COMPLETELY turn off a service from starting up/shutting down, just do chkconfig <service> off Hope this helps, and doesn't confuse you too much!! Duncan |
All times are GMT -5. The time now is 02:54 AM. |