]> git.pld-linux.org Git - packages/nfs-utils.git/commitdiff
- use generic portmapper check from rc-scripts auto/th/quota-3_14-4 auto/th/quota-3_15-1 auto/th/quota-3_15-2 auto/th/quota-3_15-3 auto/th/quota-3_16-1 auto/ti/quota-3_15-3 auto/ti/quota-3_16-1
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 26 Apr 2007 22:19:06 +0000 (22:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nfs.init -> 1.47
    nfsfs.init -> 1.38
    nfslock.init -> 1.20
    rpcgssd.init -> 1.8
    rpcidmapd.init -> 1.13
    rpcsvcgssd.init -> 1.11
    rquotad.init -> 1.19

nfs.init
nfsfs.init
nfslock.init
rpcgssd.init
rpcidmapd.init
rpcsvcgssd.init
rquotad.init

index 3c115bfa6a717aa02cc39742afdac7b3e05f675c..0da6062e1f467d2d9646c2c351f8981f3c2033ae 100644 (file)
--- a/nfs.init
+++ b/nfs.init
@@ -34,8 +34,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-       [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 start() {
index 6168d1914bcdd59d03063577c5ae9c741d9ecf51..d25609165c518bcd27d5fbe5cf9890f593f6441b 100644 (file)
@@ -31,8 +31,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-       [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 start() {
index 609cb8939e5a39f188dcccd67ee69c65851b956f..063633466f15262f76d2825fe9a5acd086f1957e 100644 (file)
@@ -30,8 +30,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-       [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 # /usr may be on NFS, fail silently, nfsfs will start it
index 4d67756e22a0b61bd8a6e951d7422532663242e6..803882c75048994b1c2eba6e7fd2c3323e429709 100644 (file)
@@ -22,8 +22,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-       [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 # Get service config
index 298698062c4058cef74cf05471740aa318d19ba7..eda321ae543d36ef9b0aa8a29516548e574c2a20 100644 (file)
@@ -22,8 +22,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-       [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 # Get service config
index 2f63c9aec847b7bd04411d593fe779e839e9abed..4c634bf8f7005b459af6be919dcbfac66a4c90cc 100644 (file)
@@ -22,8 +22,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
-       [ -z "`/sbin/pidof portmap`" ] && nls "Error: portmap isn't running" && exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 # Get service config
index ccefafffd2419c39926aa1dc4e1993d81b7a8da8..1bfadb17b763d71eeae938fa7be116e92a8f093e 100644 (file)
@@ -29,9 +29,8 @@ else
        exit 0
 fi
 
-if [ -x /sbin/pidof ] && [ "$1" != "stop" ] && [ -z "`/sbin/pidof portmap`" ]; then
-       echo "Error: portmap isn't running"
-       exit 0
+if [ "$1" != "stop" ]; then
+       check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
 fi
 
 start() {
This page took 0.169169 seconds and 4 git commands to generate.