]> git.pld-linux.org Git - packages/nfs-utils.git/blobdiff - nfs.init
- use generic portmapper check from rc-scripts
[packages/nfs-utils.git] / nfs.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() {
This page took 0.033856 seconds and 4 git commands to generate.