aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorMichael K. Johnson <johnsonm@redhat.com>1998-04-20 20:54:23 +0000
committerMichael K. Johnson <johnsonm@redhat.com>1998-04-20 20:54:23 +0000
commitc833c2cb490dd2e3c9fd4c3913d92aaee178c857 (patch)
tree2ed516cd7556a57fd45ff440bac4362ac981da73 /rc.d
parent1bb963a79aa840719ac29e09f8fc155795dee3c9 (diff)
downloadinitscripts-c833c2cb490dd2e3c9fd4c3913d92aaee178c857.tar
initscripts-c833c2cb490dd2e3c9fd4c3913d92aaee178c857.tar.gz
initscripts-c833c2cb490dd2e3c9fd4c3913d92aaee178c857.tar.bz2
initscripts-c833c2cb490dd2e3c9fd4c3913d92aaee178c857.tar.xz
initscripts-c833c2cb490dd2e3c9fd4c3913d92aaee178c857.zip
Added reload function.
Made status do something other than "command not found".
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/nfsfs18
1 files changed, 16 insertions, 2 deletions
diff --git a/rc.d/init.d/nfsfs b/rc.d/init.d/nfsfs
index 732bd660..925cd585 100755
--- a/rc.d/init.d/nfsfs
+++ b/rc.d/init.d/nfsfs
@@ -35,14 +35,28 @@ case "$1" in
echo
;;
status)
- status nfsfs
+ if [ -f /proc/mounts ] ; then
+ echo "Configured NFS mountpoints:"
+ grep -v '^#' /etc/fstab | \
+ awk '{ if ($3 ~ /^nfs$/ && $4 !~ /noauto/)
+ print $2}'
+ echo "Active NFS mountpoints:"
+ grep -v '^#' /proc/mounts | \
+ awk '{ if ($3 ~ /^nfs$/ && $4 !~ /noauto/)
+ print $2}'
+ else
+ echo "/proc filesystem unavailable"
+ fi
;;
restart)
$0 stop
$0 start
;;
+ reload)
+ mount -a -t nfs
+ ;;
*)
- echo "Usage: nfsfs {start|stop|restart|status}"
+ echo "Usage: nfsfs {start|stop|restart|reload|status}"
exit 1
esac