lighttpd: add 'reload' to init script to make logrotate-friendly 4570/head
authorPhilip Prindeville <philipp@redfish-solutions.com>
Mon, 10 Jul 2017 22:06:38 +0000 (16:06 -0600)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Mon, 10 Jul 2017 22:11:19 +0000 (16:11 -0600)
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 <philipp@redfish-solutions.com>
net/lighttpd/Makefile
net/lighttpd/files/lighttpd.init

index 20f0d5725fbf26dfdb1a8b4eac2fc17aa0be83b7..f7779efa04ded266b027edd00251978347ec226e 100644 (file)
@@ -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
index d1dfec8f839ac6c97d744ba3f6f2415327d4d3f3..84a3a18dfe8ca24696ae27100a8d17d861a2e428 100644 (file)
@@ -28,3 +28,6 @@ start_service() {
        procd_close_instance
 }
 
+reload_service() {
+       procd_send_signal lighttpd
+}