Browse Source

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>
lilik-openwrt-22.03
Glenn Strauss 4 years ago
parent
commit
5a374b6a5a
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      net/lighttpd/files/lighttpd.init

+ 15
- 1
net/lighttpd/files/lighttpd.init View File

@ -28,6 +28,20 @@ start_service() {
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)"

Loading…
Cancel
Save