Changeset 28908


Ignore:
Timestamp:
2011-11-10T00:29:31+01:00 (6 years ago)
Author:
nico
Message:

packages/xinetd: use new service functions

Location:
packages/net/xinetd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/xinetd/Makefile

    r28748 r28908  
    1010PKG_NAME:=xinetd 
    1111PKG_VERSION:=2.3.14 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/xinetd/files/xinetd.init

    r28748 r28908  
    11#!/bin/sh /etc/rc.common 
    22# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 DEFAULT=/etc/default/xinetd 
    6 RUN_D=/var/run 
    7 PID_F=$RUN_D/xinetd.pid 
     6SERVICE_USE_PID=1 
    87 
    98start() { 
    10         [ -f $DEFAULT ] && . $DEFAULT 
    11         [ -d $RUN_D ] || mkdir -p $RUN_D 
    12         xinetd -pidfile $PID_F $OPTIONS 
     9        service_start /usr/sbin/xinetd -pidfile /var/run/xinetd.pid 
    1310} 
    1411 
    1512stop() { 
    16         [ -f $PID_F ] && kill $(cat $PID_F) 
     13        service_stop /usr/sbin/xinetd 
    1714} 
    1815 
Note: See TracChangeset for help on using the changeset viewer.