mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 22:33:02 +02:00
package/skeleton-init-finit: add support for monitoring nginx
Also needs /var/cache/nginx when starting up. Requires separate patch for now, but will be added a tmpflies.so plugn to Finit. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -68,6 +68,13 @@ endef
|
||||
SKELETON_INIT_FINIT_TARGET_FINALIZE_HOOKS += SKELETON_INIT_FINIT_SET_LLDPD
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NGINX),y)
|
||||
define SKELETON_INIT_FINIT_SET_NGINX
|
||||
ln -sf ../available/nginx.conf $(FINIT_D)/enabled/nginx.conf
|
||||
endef
|
||||
SKELETON_INIT_FINIT_TARGET_FINALIZE_HOOKS += SKELETON_INIT_FINIT_SET_NGINX
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MINI_SNMPD),y)
|
||||
define SKELETON_INIT_FINIT_SET_MINI_SNMPD
|
||||
ln -sf ../available/mini-snmpd.conf $(FINIT_D)/enabled/mini-snmpd.conf
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
service [2345789] env:-/etc/default/nginx nginx -g 'daemon off;' $NGINX_ARGS -- Web server
|
||||
Reference in New Issue
Block a user