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>
This commit is contained in:
parent
4d5c752f45
commit
66349b4cd9
1 changed files with 1 additions and 6 deletions
|
@ -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…
Reference in a new issue