reload_server() gracefully with SIGUSR1 to lighttpd
relog() to reopen log files with SIGHUP to lighttpd
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
procd_close_instance
}
+service_triggers() {
+ procd_add_reload_interface_trigger loopback
+ procd_add_reload_interface_trigger lan
+}
+
reload_service() {
- procd_send_signal lighttpd
+ # lighttpd graceful restart (SIGUSR1)
+ procd_send_signal lighttpd '*' USR1
}
+
+relog() {
+ # lighttpd reopen log files (SIGHUP)
+ procd_send_signal lighttpd '*' HUP
+}
+
+EXTRA_COMMANDS="relog"
+EXTRA_HELP=" relog Reopen log files (without reloading)"