Changeset 38207


Ignore:
Timestamp:
2013-09-26T14:08:31+02:00 (4 years ago)
Author:
tripolar
Message:

[packages]: nfs-kernel-server switch to new procd init script style

Signed-off-by: Peter Wagner <tripolar@…>

File:
1 edited

Legend:

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

    r28932 r38207  
    55STOP=60 
    66 
    7 SERVICE_USE_PID=1 
     7USE_PROCD=1 
    88 
    99NFS_D=/var/lib/nfs 
    1010LOCK_D=/var/lib/nfs/sm 
    1111 
    12 start() { 
     12start_service() { 
    1313        grep -q /proc/fs/nfsd /proc/mounts || \ 
    1414                mount -t nfsd nfsd /proc/fs/nfsd 
     
    1818 
    1919        sysctl -w fs.nfs.nlm_tcpport=32777 fs.nfs.nlm_udpport=32777 > /dev/null 
    20         service_start /usr/sbin/rpc.statd -p 32778 -o 32779 
     20 
     21        procd_open_instance 
     22        procd_set_param command /usr/sbin/rpc.statd -p 32778 -o 32779 -F 
     23        procd_close_instance 
     24 
    2125        /usr/sbin/exportfs -r 
    2226        /usr/sbin/rpc.nfsd 
    23         SERVICE_WRITE_PID=1 \ 
    24         SERVICE_DAEMONIZE=1 \ 
    25         service_start /usr/sbin/rpc.mountd -p 32780 -F 
     27 
     28        procd_open_instance 
     29        procd_set_param command /usr/sbin/rpc.mountd -p 32780 -F 
     30        procd_close_instance 
    2631} 
    2732 
    28 stop() { 
    29         service_stop /usr/sbin/rpc.mountd 
     33stop_service() { 
    3034        rpc.nfsd 0 2> /dev/null 
    3135        /usr/sbin/exportfs -au 
    32         service_stop /usr/sbin/rpc.statd 
    3336        grep -q /proc/fs/nfsd /proc/mounts && \ 
    3437                umount /proc/fs/nfsd 
    3538} 
    36  
    37 reload() { 
    38         /usr/sbin/exportfs -r 
    39 } 
    40  
Note: See TracChangeset for help on using the changeset viewer.