From: Florian Eckert Date: Tue, 23 Jan 2018 10:12:16 +0000 (+0100) Subject: net/stunnel: do always stop/start on config change X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=66349b4cd97b5cb5096dd8fbf88e4ef26b859f34;p=feed%2Fpackages.git net/stunnel: do always stop/start on config change Do not send a SIGHUP on reload configuration let procd restart the service with stop/start. This is saver. Add uci generated stunnel file to procd "file" attribute to reload/restart the stunnel service. Signed-off-by: Florian Eckert --- diff --git a/net/stunnel/files/stunnel.init b/net/stunnel/files/stunnel.init index 2c7d0effd1..79e391e78b 100644 --- a/net/stunnel/files/stunnel.init +++ b/net/stunnel/files/stunnel.init @@ -156,12 +156,6 @@ process_config() { config_foreach service_section service } -reload_service() { - process_config - # SIGHUP is used by stunnel to do init.d reload - procd_send_signal stunnel -} - service_triggers() { procd_add_reload_trigger "stunnel" } @@ -175,5 +169,6 @@ start_service() { # set auto respawn behavior procd_set_param respawn + procd_set_param file "$CONF_FILE" procd_close_instance }