From c3345a6d4ab08167c397858aec18c1d73f6b2438 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Mon, 10 Jul 2017 16:06:38 -0600 Subject: [PATCH] lighttpd: add 'reload' to init script to make logrotate-friendly If lighttpd's scripts are rotated from under it while they're still open, this will cause some weird things to happen. Give it a heads up that the logs have moved. Signed-off-by: Philip Prindeville --- net/lighttpd/Makefile | 2 +- net/lighttpd/files/lighttpd.init | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/net/lighttpd/Makefile b/net/lighttpd/Makefile index 20f0d5725f..f7779efa04 100644 --- a/net/lighttpd/Makefile +++ b/net/lighttpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lighttpd PKG_VERSION:=1.4.45 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://download.lighttpd.net/lighttpd/releases-1.4.x diff --git a/net/lighttpd/files/lighttpd.init b/net/lighttpd/files/lighttpd.init index d1dfec8f83..84a3a18dfe 100644 --- a/net/lighttpd/files/lighttpd.init +++ b/net/lighttpd/files/lighttpd.init @@ -28,3 +28,6 @@ start_service() { procd_close_instance } +reload_service() { + procd_send_signal lighttpd +} -- 2.30.2