Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba init script does not do anything, after upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Wed Aug 13, 2008 12:43 pm    Post subject: Samba init script does not do anything, after upgrade Reply with quote

Hello,

Trouble with samba on my server. I upgraded from an old 3.0.x version (I think it was 3.0.18?) and now my samba init script won't do anything. It returns with no output. If I try and run it again, it says Samba is already running (it isn't):
Code:
leprechaun ~ # /etc/init.d/samba start
leprechaun ~ # ps aux | grep samba
root     15719  0.0  0.0  1396  420 pts/0    S+   1:42   0:00 grep samba
leprechaun ~ # /etc/init.d/samba start
 * WARNING:  "samba" has already been started.
leprechaun ~ # ls /var/run/samba
leprechaun ~ # /etc/init.d/samba stop
leprechaun ~ #

In desperation I unmerged samba, moved /etc/samba /etc/conf.d/samba /var/cache/samba and /var/lib/samba out of the way, and remerged samba.

Stopping, zapping, and restarting the service doesn't help.

[edit:]
Also, nothing is written to /var/log/everything/current (I'm running metalog) or /var/log/samba/* except:
Code:
Aug 13 13:41:28 [rc-scripts] WARNING:  "samba" has already been started.

Any ideas?
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Wed Aug 13, 2008 12:55 pm    Post subject: Reply with quote

you can't find a process called samba, because there is none. the processes are called smbd, nmbd and, if you have it winbindd.
Back to top
View user's profile Send private message
mr-simon
Guru
Guru


Joined: 22 Nov 2002
Posts: 367
Location: Leamington Spa, Warks, UK

PostPosted: Wed Aug 13, 2008 1:03 pm    Post subject: Reply with quote

Of course you're right... I normally look for smbd but I typed the wrong thing when crafting this post.

"ps aux | grep smbd" also doesn't find anything.

Further investigation:

It seems that the daemon_list variable is getting wiped out. If I stick
Code:
"echo ${daemon_list}"
... in the init script somewhere, it outputs nothing. I've checked /etc/conf.d/samba and it does contain
Code:
daemon_list="smbd nmbd"
although also if I manually put that line into the init script, just before 'signal_do' then it works... Although obviously this is a hack.
_________________
"Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum