mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
lighttpd: lighttpd.init reload gracefully
reload_server() gracefully with SIGUSR1 to lighttpd relog() to reopen log files with SIGHUP to lighttpd Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
This commit is contained in:
@@ -28,6 +28,20 @@ start_service() {
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
procd_send_signal lighttpd
|
||||
service_triggers() {
|
||||
procd_add_reload_interface_trigger loopback
|
||||
procd_add_reload_interface_trigger lan
|
||||
}
|
||||
|
||||
reload_service() {
|
||||
# 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)"
|
||||
|
||||
Reference in New Issue
Block a user