From f49eac262334073f74fa9336dc094028d77d4b56 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Wed, 9 Nov 2011 23:29:31 +0000 Subject: [PATCH] packages/xinetd: use new service functions SVN-Revision: 28908 --- net/xinetd/Makefile | 2 +- net/xinetd/files/xinetd.init | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/net/xinetd/Makefile b/net/xinetd/Makefile index 176cfa587..52b1deab2 100644 --- a/net/xinetd/Makefile +++ b/net/xinetd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=xinetd PKG_VERSION:=2.3.14 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.xinetd.org/ diff --git a/net/xinetd/files/xinetd.init b/net/xinetd/files/xinetd.init index c11994bd4..1437f587c 100644 --- a/net/xinetd/files/xinetd.init +++ b/net/xinetd/files/xinetd.init @@ -1,18 +1,15 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2006-2011 OpenWrt.org + START=50 -DEFAULT=/etc/default/xinetd -RUN_D=/var/run -PID_F=$RUN_D/xinetd.pid +SERVICE_USE_PID=1 start() { - [ -f $DEFAULT ] && . $DEFAULT - [ -d $RUN_D ] || mkdir -p $RUN_D - xinetd -pidfile $PID_F $OPTIONS + service_start /usr/sbin/xinetd -pidfile /var/run/xinetd.pid } stop() { - [ -f $PID_F ] && kill $(cat $PID_F) + service_stop /usr/sbin/xinetd } -- 2.30.2