mirror of https://github.com/openwrt/packages.git
xinetd: do not restart service after config change if it is not running
Signed-off-by: Helge Mader <ma@dev.tdt.de>pull/13859/head
parent
b383f4af28
commit
0bf2130f62
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=xinetd
|
||||
PKG_VERSION:=2.3.15
|
||||
PKG_RELEASE:=9
|
||||
PKG_RELEASE:=10
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/xinetd-org/xinetd/archive
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
START=50
|
||||
STOP=10
|
||||
|
||||
|
@ -119,8 +121,10 @@ start_service() {
|
|||
}
|
||||
|
||||
reload_service() {
|
||||
procd_send_signal xinetd "*" QUIT
|
||||
start
|
||||
procd_running xinetd "instance1" && {
|
||||
procd_send_signal xinetd "*" QUIT
|
||||
start
|
||||
}
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
|
|
Loading…
Reference in New Issue