nfs-utils: removed obsolete scripts.
This commit is contained in:
parent
eff7f5927c
commit
b3b2a4edfd
@ -1,20 +0,0 @@
|
|||||||
start()
|
|
||||||
{
|
|
||||||
/usr/bin/rpcbind
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpcbind."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/rpc.statd
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpc.statd."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
killall rpc.mountd
|
|
||||||
killall rpc.statd
|
|
||||||
}
|
|
@ -1,51 +0,0 @@
|
|||||||
start()
|
|
||||||
{
|
|
||||||
mkdir -p /var/lib/nfs
|
|
||||||
if ! [ -d /var/lib/nfs ]; then
|
|
||||||
echo "ERROR: failed to create data folder."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/rpcbind
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpcbind."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/rpc.statd
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpc.statd."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/rpc.nfsd
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpc.nfsd."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/exportfs -ra
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to create filesystem table."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/rpc.mountd
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to start rpc.mountd."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
/usr/bin/exportfs -ra
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "ERROR: failed to export filesystems."
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
stop()
|
|
||||||
{
|
|
||||||
killall rpc.mountd
|
|
||||||
killall rpc.statd
|
|
||||||
killall rpcbind
|
|
||||||
}
|
|
Reference in New Issue
Block a user