sysvinit-*)
service "nfs" force-stopped
service "nfslock" force-stopped
+ service "nfs-kernel-server" force-stopped
;;
systemd-*)
service "nfs-server" force-stopped
sysvinit-redhat)
echo "&Starting nfslock: OK"
;;
- systemd-redhat)
+ sysvinit-debian)
+ cat <<EOF
+&Starting nfs-kernel-server: OK
+EOF
+ ;;
+ systemd-*)
echo "&Starting rpc-statd: OK"
;;
esac
cat <<EOF
&Starting nfslock: OK
&Starting nfs: OK
+EOF
+ ;;
+ sysvinit-debian)
+ cat <<EOF
+&Starting nfs-kernel-server: OK
EOF
;;
systemd-redhat)
&Starting rpc-statd: OK
&Starting nfs-server: OK
&Starting rpc-rquotad: OK
+EOF
+ ;;
+ systemd-debian)
+ cat <<EOF
+&Starting rpc-statd: OK
+&Starting nfs-server: OK
+&Starting quotarpc: OK
EOF
;;
esac
systemd-redhat)
echo "Stopping rpc-rquotad: OK"
;;
+ systemd-debian)
+ if service "quotarpc" status >/dev/null; then
+ echo "Stopping quotarpc: OK"
+ else
+ echo "service: can't stop quotarpc - not running"
+ fi
+ ;;
esac
;;
$CTDB_NFS_CALLOUT\ stop\ status)
systemd-redhat)
echo "&Starting rpc-rquotad: OK"
;;
+ systemd-debian)
+ echo "&Starting quotarpc: OK"
+ ;;
esac
;;
$CTDB_NFS_CALLOUT\ start\ status)