packages/nfs-server: use new service functions, remove portmap from start/stop (it is in its own initscript)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29181 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,16 +1,15 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006 OpenWrt.org
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=50
|
||||
STOP=50
|
||||
|
||||
start() {
|
||||
/usr/sbin/portmap
|
||||
/usr/sbin/rpc.mountd -r
|
||||
/usr/sbin/rpc.nfsd
|
||||
service_start /usr/sbin/rpc.mountd -r
|
||||
service_start /usr/sbin/rpc.nfsd
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall rpc.nfsd
|
||||
killall rpc.mountd
|
||||
killall portmap
|
||||
service_stop /usr/sbin/rpc.nfsd
|
||||
service_stop /usr/sbin/rpc.mountd -r
|
||||
}
|
||||
|
Reference in New Issue
Block a user