Changeset 29181


Ignore:
Timestamp:
2011-11-16T10:44:29+01:00 (6 years ago)
Author:
nico
Message:

packages/nfs-server: use new service functions, remove portmap from start/stop (it is in its own initscript)

Location:
packages/net/nfs-server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/nfs-server/Makefile

    r25842 r29181  
    11# 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=nfs-server 
    1111PKG_VERSION:=2.2beta47 
    12 PKG_RELEASE:=1 
    13 PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511 
     12PKG_RELEASE:=2 
    1413 
    1514PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/n/nfs-user-server 
    1615PKG_SOURCE:=nfs-user-server_$(PKG_VERSION).orig.tar.gz 
     16PKG_MD5SUM:=79a29fe9f79b2f3241d4915767b8c511 
    1717 
    1818include $(INCLUDE_DIR)/package.mk 
     
    3131endef 
    3232 
    33 define Build/Compile     
     33define Build/Compile 
    3434        $(MAKE) -C $(PKG_BUILD_DIR) 
    3535endef 
     
    3838TARGET_LDFLAGS += $(LIBRPC) 
    3939 
    40 define Package/nfs-server/install        
     40define Package/nfs-server/install 
    4141        $(INSTALL_DIR) $(1)/etc 
    4242        $(INSTALL_DATA) ./files/nfsd.exports $(1)/etc/exports 
  • packages/net/nfs-server/files/nfsd.init

    r19426 r29181  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45STOP=50 
    56 
    67start() { 
    7         /usr/sbin/portmap 
    8         /usr/sbin/rpc.mountd -r 
    9         /usr/sbin/rpc.nfsd 
     8        service_start /usr/sbin/rpc.mountd -r 
     9        service_start /usr/sbin/rpc.nfsd 
    1010} 
    1111 
    1212stop() { 
    13         killall rpc.nfsd 
    14         killall rpc.mountd 
    15         killall portmap 
     13        service_stop /usr/sbin/rpc.nfsd 
     14        service_stop /usr/sbin/rpc.mountd -r 
    1615} 
Note: See TracChangeset for help on using the changeset viewer.