Changed files:
nfsfs.init -> 1.27
nfslock.init -> 1.12
exit 0
fi
-# See how we were called.
-case "$1" in
- start)
+start() {
if [ ! -f /var/lock/subsys/nfsfs ]; then
if is_yes "$NFS4" ; then
if grep -q nfs4 /proc/filesystems; then
else
msg_already_running "NFSFS"
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /proc/mounts ]; then
fsfile="/proc/mounts"
else
fi
fi
rm -f /var/lock/subsys/nfsfs
+}
+
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
status)
if [ -f /proc/mounts ]; then
fi
;;
restart)
- $0 stop
- $0 start
+ stop
+ start
;;
reload|force-reload)
mount -a -t nfs
# Sanity checks
[ -x /usr/sbin/rpc.statd ] || exit 0
-RETVAL=0
-# See how we were called.
-case "$1" in
- start)
+start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/nfslock ]; then
# Start daemons.
else
msg_already_running "NFS statd"
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/nfslock ]; then
# Stop daemons.
msg_stopping "NFS statd"
else
msg_not_running "NFS statd"
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
status)
status rpc.statd
exit $?
;;
restart|force-reload)
- $0 stop
- $0 start
- exit $?
+ stop
+ start
;;
probe)
if [ ! -f /var/lock/subsys/nfslock ]; then