LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error messages on shutdown (https://www.linuxquestions.org/questions/linux-software-2/error-messages-on-shutdown-49921/)

salparadise 03-15-2003 02:00 AM

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?

markus1982 03-15-2003 02:27 AM

It couldn't stop Samba, probably due the fact that it's not running ...

chrisk5527 03-15-2003 12:31 PM

If you dont want to see those errors take it out of your /etc/rc.d/* directories.

salparadise 03-16-2003 09:01 AM

could you be a little more specific please

there is a lot of stuff in /etc/rc.d

dunkyb 03-16-2003 09:15 AM

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

salparadise 03-16-2003 09:56 AM

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

dunkyb 03-16-2003 10:48 AM

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

salparadise 03-16-2003 11:36 AM

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?

chrisk5527 03-16-2003 11:42 AM

Just use grep/locate/find in the /etc/rc.d/* directories

dunkyb 03-16-2003 12:48 PM

try "rpm -e samba" to remove it

if that doesn't work, rpm -e samba.. cant remember which works

salparadise 03-16-2003 01:14 PM

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

dunkyb 03-16-2003 01:27 PM

well that would explain it.. just follow the chkconfig lines i put, and the problem will go away

cheers

salparadise 03-16-2003 02:14 PM

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

dunkyb 03-16-2003 04:45 PM

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.