LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-15-2003, 02:00 AM   #1
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Trisquel & Freeslack
Posts: 1,706

Rep: Reputation: 83
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?
 
Old 03-15-2003, 02:27 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
It couldn't stop Samba, probably due the fact that it's not running ...
 
Old 03-15-2003, 12:31 PM   #3
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
If you dont want to see those errors take it out of your /etc/rc.d/* directories.
 
Old 03-16-2003, 09:01 AM   #4
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Trisquel & Freeslack
Posts: 1,706

Original Poster
Rep: Reputation: 83
could you be a little more specific please

there is a lot of stuff in /etc/rc.d
 
Old 03-16-2003, 09:15 AM   #5
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Rep: Reputation: 15
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
 
Old 03-16-2003, 09:56 AM   #6
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Trisquel & Freeslack
Posts: 1,706

Original Poster
Rep: Reputation: 83
below are results from comman

[root@localhost sal]# chkconfig --list | grep smb
smb 0ff 1ff 2ff 3n 4ff 5n 6ff

gotta admit this is WAY beyond where I am so far with linux
 
Old 03-16-2003, 10:48 AM   #7
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Rep: Reputation: 15
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
 
Old 03-16-2003, 11:36 AM   #8
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Trisquel & Freeslack
Posts: 1,706

Original Poster
Rep: Reputation: 83
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?
 
Old 03-16-2003, 11:42 AM   #9
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Just use grep/locate/find in the /etc/rc.d/* directories
 
Old 03-16-2003, 12:48 PM   #10
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Rep: Reputation: 15
try "rpm -e samba" to remove it

if that doesn't work, rpm -e samba.. cant remember which works
 
Old 03-16-2003, 01:14 PM   #11
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Trisquel & Freeslack
Posts: 1,706

Original Poster
Rep: Reputation: 83
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
 
Old 03-16-2003, 01:27 PM   #12
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

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

cheers
 
Old 03-16-2003, 02:14 PM   #13
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Trisquel & Freeslack
Posts: 1,706

Original Poster
Rep: Reputation: 83
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
 
Old 03-16-2003, 04:45 PM   #14
dunkyb
Member
 
Registered: Nov 2002
Distribution: Debian testing.
Posts: 143

Rep: Reputation: 15
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

Last edited by dunkyb; 03-16-2003 at 04:50 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown messages in arabic sailu_mvn Linux - Software 17 10-25-2005 01:43 AM
how to disable shutdown messages in FC3 m.harshavardhan Linux - Software 0 07-19-2005 07:21 AM
Is there a way to see shutdown messages? M$ISBS Linux - General 3 05-17-2005 08:21 PM
Shutdown messages on a diskless client Goober07 Linux - Newbie 1 05-10-2005 06:23 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 08:59 AM


All times are GMT -5. The time now is 07:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration