Package: rpcbind
Version: 0.2.0-4.1
Severity: wishlist

A couple of minor improvements.  "pidofproc" is in /lib/lsb/init-functions
and designed for the purpose.

--- rpcbind.dpkg-dist   2010-07-17 16:13:33.000000000 -0400
+++ rpcbind     2010-07-18 00:37:35.000000000 -0400
@@ -41,8 +41,8 @@
         exit 1
     fi
     log_begin_msg "Starting rpcbind daemon..."
-    ps=$( ps aux | grep /sbin/rpcbind | grep -v grep )
-    if [ -n "$ps" ]
+    pid=$( pidofproc /sbin/rpcbind )
+    if [ -n "$pid" ]
     then
         log_begin_msg "Already running."
         log_end_msg 0
@@ -66,11 +66,7 @@
     stop)
         stop
         ;;
-    force-reload)
-        stop
-        start $OPTIONS
-        ;;
-    restart)
+    restart|force-reload)
         stop
         start $OPTIONS
         ;;



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to