Browse Source

Merge pull request #13859 from TDT-AG/pr/20201105-xinetd

xinetd: do not restart service after config change if it is not running
lilik-openwrt-22.03
Florian Eckert 4 years ago
committed by GitHub
parent
commit
7ec6f47ee5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions
  1. +1
    -1
      net/xinetd/Makefile
  2. +6
    -2
      net/xinetd/files/xinetd.init

+ 1
- 1
net/xinetd/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=xinetd PKG_NAME:=xinetd
PKG_VERSION:=2.3.15 PKG_VERSION:=2.3.15
PKG_RELEASE:=9
PKG_RELEASE:=10
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/xinetd-org/xinetd/archive PKG_SOURCE_URL:=https://github.com/xinetd-org/xinetd/archive


+ 6
- 2
net/xinetd/files/xinetd.init View File

@ -1,6 +1,8 @@
#!/bin/sh /etc/rc.common #!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org # Copyright (C) 2006-2011 OpenWrt.org
. /lib/functions.sh
START=50 START=50
STOP=10 STOP=10
@ -119,8 +121,10 @@ start_service() {
} }
reload_service() { reload_service() {
procd_send_signal xinetd "*" QUIT
start
procd_running xinetd "instance1" && {
procd_send_signal xinetd "*" QUIT
start
}
} }
service_triggers() { service_triggers() {


Loading…
Cancel
Save