Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55018 - init script for samba3 does not launch the daemons ?
Summary: init script for samba3 does not launch the daemons ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-24 07:27 UTC by Hubert Mercier (RETIRED)
Modified: 2004-06-24 08:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hubert Mercier (RETIRED) gentoo-dev 2004-06-24 07:27:26 UTC
Hello all.

Just installed samba3, and configured it fine. But, when i ran /etc/init.d/samba start, impossible to log into my server. But : the script told me, that samba was fired well ([OK] at the end of the line).

I discovered that smbd and nmbd were not running (!). So, i had a look at the init script, which does not make any reference to the samba binaries (smbd and nmbd).

I needed samba to run quickly to continue working, so i decided to write my own script, probably not 'clean'. Feel free to use it and to make it better ;-) But for now : it just works.

Here it is :

[/etc/init.d/samba3]

#!/sbin/runscript 
#samba3 start-stop script for gentoo 
#contact : anigel on forum gentoo 

depend() { 
        need net 
        use cupsd 
} 

start() { 
        ebegin "Starting samba3 daemons" 
        ebegin "Starting SmBd daemon" 
        start-stop-daemon --start --quiet --exec /usr/sbin/smbd \ 
                -- -pidfile /var/run/samba/smbd.pid 
        eend $? 
        ebegin "Starting NmBd daemon" 
        start-stop-daemon --start --quiet --exec /usr/sbin/nmbd \ 
                -- -pidfile /var/run/samba/nmbd.pid 
        eend $? 
} 

stop() { 
        ebegin "Stopping samba3 daemons" 
        ebegin "Stopping SmBd daemon" 
        start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid 
        eend $? 
        ebegin "Stopping NmBd daemon" 
        start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid 
        eend $? 
}

Reproducible: Always
Steps to Reproduce:
1.just try to start samba3
2.
3.

Actual Results:  
Got the [OK] message as the daemon had been started, but it wasn't.

Expected Results:  
It should launch smbd and nmbs instead.
Comment 1 Michael Glauche (RETIRED) gentoo-dev 2004-06-24 08:06:53 UTC
can you try the (still masked) samba-3.0.4-r1.ebuild, and try again (after etc-update of course) ?

there was a rewrite of the init scripts in the 3.0.4 version, they should work much better now.
Comment 2 Hubert Mercier (RETIRED) gentoo-dev 2004-06-24 08:14:45 UTC
You're right !

It works well with the new version. I was sure that samba was registered in "system" package list, that's why i didn't see the update on the moment. I found it juste before you replied ;-).

Sorry for boring so :( .

I close the bug.