SCIENTIFIC-LINUX-USERS Archives

February 2011

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Don Krause <[log in to unmask]>
Reply To:
Don Krause <[log in to unmask]>
Date:
Wed, 2 Feb 2011 12:47:10 -0800
Content-Type:
multipart/signed
Parts/Attachments:
text/plain (928 bytes) , smime.p7s (4 kB)
Would somebody with access to RHEL 6 please see if this bug exists in RHEL's version? (This changed from the old stop; start definition to this function sometime between the public RH beta, and the SL6 beta.)

Notice the lack of "$prog" in the SL6 version.

This prevents "service autofs restart" from working. 

Thanks

My patch:

diff --git a/autofs b/autofs
index d7afe85..75065e7 100755
--- a/autofs
+++ b/autofs
@@ -126,7 +126,7 @@ function stop() {
 }
 
 function restart() {
-       status > /dev/null 2>&1
+       status $prog > /dev/null 2>&1
        if [ $? -eq 0 ]; then
                stop
        fi

--
Don Krause                                                                   
Head Systems Geek, 
Waver of Deceased Chickens.
Optivus Proton Therapy, Inc.
P.O. Box 608
Loma Linda, California 92354
909.799.8327 Tel
909.799.8366 Fax
[log in to unmask]
www.optivus.com
"This message represents the official view of the voices in my head."








ATOM RSS1 RSS2