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:
parent
5fb8d5f463
commit
5a374b6a5a
1 changed files with 16 additions and 2 deletions
|
@ -28,6 +28,20 @@ start_service() {
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
reload_service() {
|
service_triggers() {
|
||||||
procd_send_signal lighttpd
|
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)"
|
||||||
|
|
Loading…
Reference in a new issue