Ian Kent 7bcbae
autofs-5.0.7 - fix init script status return
Ian Kent 7bcbae
Ian Kent 7bcbae
From: Ian Kent <ikent@redhat.com>
Ian Kent 7bcbae
Ian Kent 7bcbae
The patch that added the piddir to configure to fix incorrect init
Ian Kent 7bcbae
script status() function returns failed to actually return the value
Ian Kent 7bcbae
to the user.
Ian Kent 7bcbae
---
Ian Kent 7bcbae
Ian Kent 7bcbae
 CHANGELOG             |    1 +
Ian Kent 7bcbae
 redhat/autofs.init.in |    2 +-
Ian Kent 7bcbae
 2 files changed, 2 insertions(+), 1 deletions(-)
Ian Kent 7bcbae
Ian Kent 7bcbae
Ian Kent 7bcbae
diff --git a/CHANGELOG b/CHANGELOG
Ian Kent 7bcbae
index 76c1f73..5bcb1af 100644
Ian Kent 7bcbae
--- a/CHANGELOG
Ian Kent 7bcbae
+++ b/CHANGELOG
Ian Kent 7bcbae
@@ -19,6 +19,7 @@
Ian Kent 7bcbae
 - Allow nsswitch.conf to not contain "automount:" lines.
Ian Kent 7bcbae
 - fix nobind man page description.
Ian Kent 7bcbae
 - fix submount offset delete.
Ian Kent 7bcbae
+- fix init script status return.
Ian Kent 7bcbae
 
Ian Kent 7bcbae
 25/07/2012 autofs-5.0.7
Ian Kent 7bcbae
 =======================
Ian Kent 7bcbae
diff --git a/redhat/autofs.init.in b/redhat/autofs.init.in
Ian Kent 7bcbae
index fe18b3e..9d008ff 100644
Ian Kent 7bcbae
--- a/redhat/autofs.init.in
Ian Kent 7bcbae
+++ b/redhat/autofs.init.in
Ian Kent 7bcbae
@@ -172,7 +172,7 @@ RETVAL=0
Ian Kent 7bcbae
 case "$1" in
Ian Kent 7bcbae
 	status)
Ian Kent 7bcbae
 		status -p @@autofspiddir@@/autofs.pid -l autofs $prog
Ian Kent 7bcbae
-		exit 0;
Ian Kent 7bcbae
+		exit $?;
Ian Kent 7bcbae
 		;;
Ian Kent 7bcbae
 	usage)
Ian Kent 7bcbae
 		usage_message