Bug 662911

Summary: autofs service can not restart
Product: Red Hat Enterprise Linux 6 Reporter: Jaylin Zhou <zzhou>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED DUPLICATE QA Contact: yanfu,wang <yanwang>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: ikent
Target Milestone: rc   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-15 02:14:49 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 Jaylin Zhou 2010-12-14 06:54:07 UTC
Description of problem:
autofs service can not restart, but we can stop it and start it.

Version-Release number of selected component (if applicable):
autofs-5.0.5-23.el6.i686

How reproducible:

Steps to Reproduce:
1. install RHEL6
2. service autofs restart

Actual results:
# service autofs restart
Starting automount: automount: program is already running.
                                                           [  OK  ]

Expected results:
Stopping automount:                                        [  OK  ]
Starting automount:                                        [  OK  ]


Additional info:
In RHEL5u5, the restart function in /etc/init.d/autofs script is:
function restart() {
        stop
        start
}

But in RHEL6, the restart function in /etc/init.d/autofs script is:
function restart() {
        status > /dev/null 2>&1
        if [ $? -eq 0 ]; then
                stop
        fi
        start
}

Comment 2 Ian Kent 2010-12-15 02:14:49 UTC
This has already been reported and an appropriate correction
proposed for RHEL-6.1.

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