Browse Source

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 <fe@dev.tdt.de>
lilik-openwrt-22.03
Florian Eckert 7 years ago
parent
commit
66349b4cd9
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      net/stunnel/files/stunnel.init

+ 1
- 6
net/stunnel/files/stunnel.init View File

@ -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
}

Loading…
Cancel
Save