Bug 160059

Summary: init script will not stop daemon if smb.conf deleted while running
Product: Red Hat Enterprise Linux 4 Reporter: Chester Hosey <chester.hosey>
Component: sambaAssignee: Simo Sorce <ssorce>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-05 19:11:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chester Hosey 2005-06-10 15:21:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
"/etc/init.d/smb stop" exits silently if smb.conf does not exist.

Version-Release number of selected component (if applicable):
samba-3.0.10-1.4E

How reproducible:
Always

Steps to Reproduce:
1. With existing /etc/samba/smb.conf, start samba (/etc/init.d/smb start).
2. Delete or rename /etc/samba/smb.conf
3. "/etc/init.d/smb stop" will exit silently.

Actual Results:  The script silently exits without stopping smbd.

Expected Results:  Service should be stopped.

Additional info:

Filed as low priority because this is not likely to happen often and an easy workaround is present (killall smbd nmbd).

Comment 1 RHEL Program Management 2006-08-18 17:38:45 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 4 Simo Sorce 2007-03-05 19:22:41 UTC
While smb.conf is the config file and not the init script itself, it is a
required comopnent of the package. Removing smb.conf is not considered a correct
operation.

If you think there is a situation in which removing smb.conf is necessary or
happens under some condition, please reopen the bug and describe in which
situation this may happen.