]> git.pld-linux.org Git - packages/clusternfs.git/blobdiff - clusternfs.init
- use generic portmapper check from rc-scripts
[packages/clusternfs.git] / clusternfs.init
index 6ab83ccf3dad8fcf5585d5842b04d724dbaca07e..9faeb1d54975656cf55284cac4cb5c0e2dbbbf91 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
 
 # Sanity checks
This page took 0.107579 seconds and 4 git commands to generate.