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>
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"
}
# set auto respawn behavior
procd_set_param respawn
+ procd_set_param file "$CONF_FILE"
procd_close_instance
}