packages/xinetd: fix initscript (closes: #10342)
Create a pid file by default when starting xinetd (resolves #10342). Signed-off-by: Stefan Agner <stefan@agner.ch> git-svn-id: svn://svn.openwrt.org/openwrt/packages@28748 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6f7acb20cb
commit
99384b5b96
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=xinetd
|
PKG_NAME:=xinetd
|
||||||
PKG_VERSION:=2.3.14
|
PKG_VERSION:=2.3.14
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://www.xinetd.org/
|
PKG_SOURCE_URL:=http://www.xinetd.org/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
START=50
|
START=50
|
||||||
|
|
||||||
DEFAULT=/etc/default/xinetd
|
DEFAULT=/etc/default/xinetd
|
||||||
@ -9,7 +9,7 @@ PID_F=$RUN_D/xinetd.pid
|
|||||||
start() {
|
start() {
|
||||||
[ -f $DEFAULT ] && . $DEFAULT
|
[ -f $DEFAULT ] && . $DEFAULT
|
||||||
[ -d $RUN_D ] || mkdir -p $RUN_D
|
[ -d $RUN_D ] || mkdir -p $RUN_D
|
||||||
xinetd $OPTIONS
|
xinetd -pidfile $PID_F $OPTIONS
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user