nginx: use new extra_command function definition
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 28 Oct 2020 14:55:28 +0000 (15:55 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 4 Nov 2020 07:50:34 +0000 (08:50 +0100)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/nginx/Makefile
net/nginx/files/nginx.init

index 0ad0d14887ff7d441c6dde06d899467185989173..d8e0c60a678ec71855721cd0217e958bfc831124 100644 (file)
@@ -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/
index 56d1a000c3540c9ca35b27b2d28a065e26143a6b..bedde754a449a4249be44f64a3e111d4c4882519 100644 (file)
@@ -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)"