From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011012 Description of problem: Run "service autofs stop" on a running automount service and observe how the [ OK ] turns to [Failed] almost immediately, although the shutdown succeeds. Version-Release number of selected component (if applicable): 3.1.7-21 How reproducible: Always Steps to Reproduce: 1. service autofs start 2. service autofs stop 3. Observe the status output of the service script. Actual Results: "service autofs stop" prints [ OK ] and almost immediately changes it to [FAILED]. Expected Results: "service autofs stop" should print [ OK ] only. Additional info: I think the problem here is that "automount" forks a child process upon shutdown which confuses the "stop" code in the "autofs" service script. After sending a USR2 signal to the single automount process, the script checks /sbin/pidof /usr/sbin/automount which returns the daemon's PID plus a second PID as long as automount has not shutdown yet. This causes the script to enter a special shutdown loop which fails to terminate automount which has finished its shutdown code meanwhile.
Again, do you have to have mountpoints defined for this to work? I am unable to reproduce this problem.
Yes. Running automount without any mount-points makes no sense. On Enigma (reproducible on Skipjack-beta2), see description above: # /etc/auto.master /home/ftp/pub/mnt/enigma /etc/auto.enigma -timeout 600 # /etc/auto.enigma disc1 -fstype=iso9660,ro,loop :/home/ftp/pub/rh72/iso/enigma-i386-disc1.iso disc2 -fstype=iso9660,ro,loop :/home/ftp/pub/rh72/iso/enigma-i386-disc2.iso # the long lines above probably get wrapped by bugzilla (don't know) # service autofs start Starting automount: [ OK ] The following first reads [ OK ] and then immediately turns into [FAILED]: # service autofs stop Stopping automount: [FAILED]
Original report was about Red Hat Linux 7.2 (Enigma). Reproducible on Phoebe (8.0.93). What is written in "Additional info:" is still true. # service autofs start Starting automount: [ OK ] # pidof /usr/sbin/automount 2279 2255 # service autofs stop Stopping automount: [FAILED] # service autofs start Starting automount: [ OK ] # service autofs stop Stopping automount: [ OK ] # service autofs start Starting automount: [ OK ] # service autofs stop Stopping automount: [FAILED]
*** Bug 70707 has been marked as a duplicate of this bug. ***
I will push a fix for this into rawhide, once the pool opens up.