mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
Merge pull request #13752 from TDT-AG/pr/20201023-xinetd
xinetd: some changes
This commit is contained in:
+2
-1
@@ -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:=8
|
PKG_RELEASE:=9
|
||||||
|
|
||||||
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
|
||||||
@@ -41,6 +41,7 @@ endef
|
|||||||
|
|
||||||
define Package/xinetd/conffiles
|
define Package/xinetd/conffiles
|
||||||
/etc/config/xinetd
|
/etc/config/xinetd
|
||||||
|
/etc/xinetd.d
|
||||||
endef
|
endef
|
||||||
|
|
||||||
TARGET_CFLAGS += -DNO_RPC
|
TARGET_CFLAGS += -DNO_RPC
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ PIDFILE="/var/run/xinetd.pid"
|
|||||||
|
|
||||||
CONF_FILE="/etc/config/xinetd"
|
CONF_FILE="/etc/config/xinetd"
|
||||||
GENERATED_CONF_FILE="/var/run/xinetd.conf"
|
GENERATED_CONF_FILE="/var/run/xinetd.conf"
|
||||||
|
OTHER_CONF_DIR="/tmp/xinetd.d"
|
||||||
|
|
||||||
ServiceEntry="false"
|
ServiceEntry="false"
|
||||||
ListName=""
|
ListName=""
|
||||||
@@ -101,11 +102,14 @@ generate_config() {
|
|||||||
echo "}" >> $GENERATED_CONF_FILE
|
echo "}" >> $GENERATED_CONF_FILE
|
||||||
echo "" >> $GENERATED_CONF_FILE
|
echo "" >> $GENERATED_CONF_FILE
|
||||||
echo "includedir /etc/xinetd.d" >> $GENERATED_CONF_FILE
|
echo "includedir /etc/xinetd.d" >> $GENERATED_CONF_FILE
|
||||||
|
echo "includedir $OTHER_CONF_DIR" >> $GENERATED_CONF_FILE
|
||||||
|
|
||||||
config_load xinetd
|
config_load xinetd
|
||||||
}
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
mkdir -p $OTHER_CONF_DIR
|
||||||
|
|
||||||
generate_config
|
generate_config
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
|
|||||||
@@ -2,10 +2,12 @@
|
|||||||
# option type 'UNLISTED'
|
# option type 'UNLISTED'
|
||||||
# option port '6556'
|
# option port '6556'
|
||||||
# option socket_type 'stream'
|
# option socket_type 'stream'
|
||||||
# option protocol 'tcp'
|
# option protocol 'tcp'
|
||||||
# option wait 'no'
|
# option wait 'no'
|
||||||
# option user 'root'
|
# option user 'root'
|
||||||
# option server '/usr/bin/check_mk_agent'
|
# option server '/usr/bin/check_mk_agent'
|
||||||
# option log_on_success ''
|
# list only_from '127.0.0.1'
|
||||||
# option only_from '127.0.0.1'
|
# list only_from '1.1.1.1'
|
||||||
# option disable 'no'
|
# list log_on_success 'PID'
|
||||||
|
# list log_on_success 'HOST'
|
||||||
|
# option disable 'no'
|
||||||
|
|||||||
Reference in New Issue
Block a user