Changeset 33378


Ignore:
Timestamp:
2012-09-12T12:09:55+02:00 (5 years ago)
Author:
jow
Message:

[package] mountd: add "-f" option to not daemonize mountd, use service wrappers in init script

Location:
trunk/package/mountd
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mountd/Makefile

    r32818 r33378  
    1 # Copyright (C) 2009-2011 OpenWrt.org 
     1# Copyright (C) 2009-2012 OpenWrt.org 
    22# All rights reserved. 
    33 
     
    66PKG_NAME:=mountd 
    77PKG_VERSION:=0.1 
    8 PKG_RELEASE:=5 
     8PKG_RELEASE:=6 
    99 
    1010PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • trunk/package/mountd/files/mountd.init

    r17853 r33378  
    11#!/bin/sh /etc/rc.common 
     2 
    23START=80 
     4 
     5SERVICE_DAEMONIZE=1 
     6SERVICE_WRITE_PID=1 
     7SERVICE_PID_FILE=/var/run/mountd.pid 
     8 
     9MOUNTD_BIN=/sbin/mountd 
    310 
    411start() 
    512{ 
    6         /sbin/mountd 
     13        service_start $MOUNTD_BIN -f 
    714} 
    815 
    916stop() 
    1017{ 
    11         killall mountd 
     18        service_stop $MOUNTD_BIN 
    1219} 
Note: See TracChangeset for help on using the changeset viewer.