Ignore:
Timestamp:
2011-11-09T17:11:05+01:00 (5 years ago)
Author:
tripolar
Message:

[packages] nfs-kernel-server: use new service wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/nfs-kernel-server/files/nfsd.init

    r28853 r28880  
    44START=60 
    55STOP=60 
     6 
     7SERVICE_DAEMONIZE=1 
     8SERVICE_WRITE_PID=1 
    69 
    710NFS_D=/var/lib/nfs 
     
    1619 
    1720        sysctl -w fs.nfs.nlm_tcpport=32777 fs.nfs.nlm_udpport=32777 > /dev/null 
    18         /usr/sbin/rpc.statd -p 32778 -o 32779 
     21        service_start /usr/sbin/rpc.statd -p 32778 -o 32779 
    1922        /usr/sbin/exportfs -r 
    2023        /usr/sbin/rpc.nfsd 
    21         /usr/sbin/rpc.mountd -p 32780 
     24        service_start /usr/sbin/rpc.mountd -p 32780 -F 
    2225} 
    2326 
    2427stop() { 
    25         killall rpc.mountd 2> /dev/null 
     28        service_stop /usr/sbin/rpc.mountd 
    2629        rpc.nfsd 0 2> /dev/null 
    2730        /usr/sbin/exportfs -au 
    28         killall rpc.statd 2> /dev/null 
     31        service_stop /usr/sbin/rpc.statd 
    2932        grep -q /proc/fs/nfsd /proc/mounts && \ 
    3033                umount /proc/fs/nfsd 
Note: See TracChangeset for help on using the changeset viewer.