Create a pid file by default when starting xinetd (resolves #10342).
Signed-off-by: Stefan Agner <stefan@agner.ch>
SVN-Revision: 28748
#
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_NAME:=xinetd
PKG_VERSION:=2.3.14
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.xinetd.org/
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2011 OpenWrt.org
START=50
DEFAULT=/etc/default/xinetd
start() {
[ -f $DEFAULT ] && . $DEFAULT
[ -d $RUN_D ] || mkdir -p $RUN_D
- xinetd $OPTIONS
+ xinetd -pidfile $PID_F $OPTIONS
}
stop() {