Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 165729

Summary: wrong use of config file in net-fs/samba-3.0.24
Product: Gentoo Linux Reporter: Natanael Copa <natanael.copa>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Natanael Copa 2007-02-07 09:31:48 UTC
the /etc/conf.d/samba contains lots of "config options" which should be set to things like: "start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid" and "unset TMP TMPDIR"

IMHO, that is not a config option. Its script internals.


Reproducible: Always

Steps to Reproduce:
1. give a non-rocket scientist the task to configure samba
2. point him/her to /etc/conf.d/samba
3. run...

Actual Results:  
User screams loud.

Expected Results:  
Users should be satisfied and comment during lunch break how cool Gentoo is.

conf.d should only contain config options, not half the init.d script.

Seriously, the guy here found out he would rather rewrite the init.d script than patch it (he tried to make it run with busybox ash instead of ash)

Why not use /etc/init.d/{smbd,nmbd,winbind} scripts? Then will the user have the power to start/reload/stop serivces independently of each other.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-07 09:35:18 UTC
You know, user config is in /etc/samba/smb.conf; so move there and leave 
/etc/conf.d/samba alone unless you have special needs.