[rusers] added rpcbind into LSB header Resolves: #697862

Jan Horak hhorak at fedoraproject.org
Tue Aug 2 08:06:56 UTC 2011


commit b6004ac680c1af852c09d24aff0ac4d6f5a13a36
Author: Honza Horák <hhorak at redhat.com>
Date:   Tue Aug 2 10:06:36 2011 +0200

    added rpcbind into LSB header
    Resolves: #697862

 rstatd.init  |    9 ++++++---
 rusers.spec  |    5 ++++-
 rusersd.init |    6 +++---
 3 files changed, 13 insertions(+), 7 deletions(-)
---
diff --git a/rstatd.init b/rstatd.init
index 3f9096d..f60cadf 100755
--- a/rstatd.init
+++ b/rstatd.init
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/sh
 #
 # chkconfig: - 60 20
 # description: The rstat protocol allows users on a network to retrieve \
@@ -7,8 +7,8 @@
 
 ### BEGIN INIT INFO
 # Provides: rpc.rstatd
-# Required-Start: $syslog $network
-# Required-Stop:  $syslog $network
+# Required-Start: $syslog $network $rpcbind
+# Required-Stop:  $syslog $network $rpcbind
 # Default-Start:
 # Default-Stop: 0 1 2 3 4 5 6
 # Short-Description: start and stop rpc.rstatd
@@ -38,6 +38,9 @@ start() {
     then
 	    exit 6 #considered not configured
     fi
+	status rpcbind > /dev/null
+	RETVAL=$?
+	[ $RETVAL -ne 0 ] && ( /etc/rc.d/init.d/rpcbind start || exit 6 ) #considered not configured
 	echo -n $"Starting rstat services: "
 	daemon rpc.rstatd
 	RETVAL=$?
diff --git a/rusers.spec b/rusers.spec
index bef6adb..a1e642e 100644
--- a/rusers.spec
+++ b/rusers.spec
@@ -5,7 +5,7 @@
 Summary: Displays the users logged into machines on the local network
 Name: rusers
 Version: 0.17
-Release: 62%{?dist}
+Release: 63%{?dist}
 License: BSD
 Url: http://rstatd.sourceforge.net/
 Group: System Environment/Daemons
@@ -152,6 +152,9 @@ fi
 %{_initrddir}/rstatd
 
 %changelog
+* Tue Aug 02 2011 Honza Horak <hhorak at redhat.com> - 0.17-63
+- added rpcbind into LSB header
+  Resolves: #697862
 
 * Thu Feb 24 2011 Honza Horak <hhorak at redhat.com> - 0.17-62
 - fixed rpmlint errors
diff --git a/rusersd.init b/rusersd.init
index 9a2cee4..9b91f78 100755
--- a/rusersd.init
+++ b/rusersd.init
@@ -7,8 +7,8 @@
 
 ### BEGIN INIT INFO
 # Provides: rpc.rusersd
-# Required-Start: $syslog $network
-# Required-Stop:  $syslog $network
+# Required-Start: $syslog $network $rpcbind
+# Required-Stop:  $syslog $network $rpcbind
 # Default-Start:
 # Default-Stop: 0 1 2 3 4 5 6
 # Short-Description: start and stop rpc.rusersd
@@ -36,7 +36,7 @@ start() {
     # Check that networking is up.
     if [ ${NETWORKING} = "no" ]
     then
-	  exit 0
+	  exit 6 #considered not configured
     fi
 	status rpcbind > /dev/null
 	RETVAL=$?


More information about the scm-commits mailing list