From 90ab809f7fff43bcd20b5a72c7dc8f2f95951153 Mon Sep 17 00:00:00 2001 From: Helge Mader Date: Fri, 23 Oct 2020 10:15:03 +0200 Subject: [PATCH] xinetd: include additional (runtime) directory in configuration file The additional directory is created and can be used e.g. for configurations which are created e.g. dynamically from an uci config. Signed-off-by: Helge Mader --- net/xinetd/files/xinetd.init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/xinetd/files/xinetd.init b/net/xinetd/files/xinetd.init index 188dcfcc6c..2071223817 100644 --- a/net/xinetd/files/xinetd.init +++ b/net/xinetd/files/xinetd.init @@ -12,6 +12,7 @@ PIDFILE="/var/run/xinetd.pid" CONF_FILE="/etc/config/xinetd" GENERATED_CONF_FILE="/var/run/xinetd.conf" +OTHER_CONF_DIR="/tmp/xinetd.d" ServiceEntry="false" ListName="" @@ -101,11 +102,14 @@ generate_config() { echo "}" >> $GENERATED_CONF_FILE echo "" >> $GENERATED_CONF_FILE echo "includedir /etc/xinetd.d" >> $GENERATED_CONF_FILE + echo "includedir $OTHER_CONF_DIR" >> $GENERATED_CONF_FILE config_load xinetd } start_service() { + mkdir -p $OTHER_CONF_DIR + generate_config procd_open_instance -- 2.30.2