nfs-utils: add status option to the nfs* rc scripts
This commit is contained in:
parent
3355cce9a8
commit
d7ae000d0d
@ -1,11 +1,11 @@
|
||||
c5ccf58f5f9f57aba75c8b72219eb6e6 exports
|
||||
167ea3a16eb6f33b3642e920147bb265 idmapd.conf
|
||||
6d383530212eb1f70811e73282358036 nfs
|
||||
49054b601b8277e86cafae36911cba46 nfs
|
||||
1e2f3c1ed468dee02d00c534c002ea10 nfs-utils-1.3.2.tar.bz2
|
||||
cdb5314516ef986b5283ee7dcc7d2278 nfsclient
|
||||
794de0e76b5532fa68ac3ad57bd78856 nfsserver
|
||||
6981419f23fbe0a0ef3b44eb2efac8fd nfsclient
|
||||
eb907aa29567365aef517b7948dc9aa0 nfsserver
|
||||
dfe1c59368b5846316ebcf3b32666c54 rpc.idmapd
|
||||
ae09bd1df5f97d36b551c067d0f9261a rpc.mountd
|
||||
abde0543c54fac9353cb22015fa7a898 rpc.nfsd
|
||||
d5f41aee9b491bf23d7986e4445dbc92 rpc.nfsd
|
||||
21d75587a1538b325bc9be0ecd9426a5 rpc.statd
|
||||
b4c745cd305c718157af2f24eef21525 statd_foreground_mode.patch
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
name=nfs-utils
|
||||
version=1.3.2
|
||||
release=4
|
||||
release=5
|
||||
source=(http://downloads.sourceforge.net/project/nfs/$name/$version/$name-$version.tar.bz2
|
||||
exports idmapd.conf
|
||||
nfs nfsclient nfsserver rpc.idmapd rpc.statd rpc.mountd rpc.nfsd
|
||||
|
@ -21,8 +21,12 @@ restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
/etc/rc.d/rpc.idmapd status
|
||||
/etc/rc.d/rpc.statd status
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart]"
|
||||
echo "usage: $0 [start|stop|restart|status]"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -14,8 +14,11 @@ restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
/bin/findmnt -t nfs,nfs4
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart]"
|
||||
echo "usage: $0 [start|stop|restart|status]"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -23,8 +23,12 @@ restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
;;
|
||||
status)
|
||||
/etc/rc.d/rpc.mountd status
|
||||
/etc/rc.d/rpc.nfsd status
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart]"
|
||||
echo "usage: $0 [start|stop|restart|status]"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -22,8 +22,7 @@ restart)
|
||||
status)
|
||||
$SSD --status --name $NAME
|
||||
case $? in
|
||||
0) echo "$PROG is running" ;;
|
||||
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||
0) echo "$PROG is running with pid $(pgrep -o -x nfsd[4]?)" ;;
|
||||
3) echo "$PROG is not running" ;;
|
||||
4) echo "Unable to determine the program status" ;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user