mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
nginx: use new extra_command function definition
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=nginx
|
||||
PKG_VERSION:=1.19.2
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=nginx-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://nginx.org/download/
|
||||
|
||||
@@ -64,11 +64,8 @@ reload_service() {
|
||||
}
|
||||
|
||||
|
||||
extra_command "relog" "Reopen log files (without reloading)"
|
||||
relog() {
|
||||
[ -d /var/log/nginx ] || mkdir -p /var/log/nginx
|
||||
procd_send_signal nginx '*' USR1
|
||||
}
|
||||
|
||||
|
||||
EXTRA_COMMANDS="relog"
|
||||
EXTRA_HELP=" relog Reopen log files (without reloading)"
|
||||
|
||||
Reference in New Issue
Block a user