From 0bf2130f621c921db61d1884f4bd80edf26af0e1 Mon Sep 17 00:00:00 2001 From: Helge Mader Date: Thu, 5 Nov 2020 13:09:55 +0100 Subject: [PATCH] xinetd: do not restart service after config change if it is not running Signed-off-by: Helge Mader --- net/xinetd/Makefile | 2 +- net/xinetd/files/xinetd.init | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/net/xinetd/Makefile b/net/xinetd/Makefile index 84f915307..2bf54ad9b 100644 --- a/net/xinetd/Makefile +++ b/net/xinetd/Makefile @@ -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 diff --git a/net/xinetd/files/xinetd.init b/net/xinetd/files/xinetd.init index 207122381..c08671735 100644 --- a/net/xinetd/files/xinetd.init +++ b/net/xinetd/files/xinetd.init @@ -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() {