nginx: use new extra_command function definition
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
f2820aa328
commit
1db50a6131
2 changed files with 2 additions and 5 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nginx
|
PKG_NAME:=nginx
|
||||||
PKG_VERSION:=1.19.2
|
PKG_VERSION:=1.19.2
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://nginx.org/download/
|
PKG_SOURCE_URL:=https://nginx.org/download/
|
||||||
|
|
|
@ -64,11 +64,8 @@ reload_service() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
extra_command "relog" "Reopen log files (without reloading)"
|
||||||
relog() {
|
relog() {
|
||||||
[ -d /var/log/nginx ] || mkdir -p /var/log/nginx
|
[ -d /var/log/nginx ] || mkdir -p /var/log/nginx
|
||||||
procd_send_signal nginx '*' USR1
|
procd_send_signal nginx '*' USR1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
EXTRA_COMMANDS="relog"
|
|
||||||
EXTRA_HELP=" relog Reopen log files (without reloading)"
|
|
||||||
|
|
Loading…
Reference in a new issue