Bug 55535

Summary: daemon() function should change CWD before starting
Product: [Retired] Red Hat Linux Reporter: Joshua Jensen <joshua>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-01 18:37:26 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 Joshua Jensen 2001-11-01 18:37:20 UTC
[root@joshua root]# umount /mnt/floppy/
[root@joshua root]# mount /mnt/floppy/
[root@joshua root]# cd /mnt/floppy/

[root@joshua floppy]# service smb restart
Shutting down SMB services:                                [  OK  ]
Shutting down NMB services:                                [  OK  ]
Starting SMB services:                                     [  OK  ]
Starting NMB services:                                     [  OK  ]

[root@joshua floppy]# cd
[root@joshua root]# umount /mnt/floppy/
umount: /mnt/floppy: device is busy
[root@joshua root]# fuser -vm /mnt/floppy/

                     USER        PID ACCESS COMMAND
/mnt/floppy/         root       7252 ..c..  smbd
                     root       7257 ..c..  nmbd


Why is this?  smbd and nmbd do need a cwd... but does it have to be
/mnt/floppy?  Why not have the daemon() function of
/etc/rc.d/init.d/functions start process in / if not explicitly specified
otherwise?

Joshua Jensen

Comment 1 Bill Nottingham 2002-01-25 06:19:31 UTC

*** This bug has been marked as a duplicate of 53304 ***