include $(TOPDIR)/rules.mk PKG_NAME:=ffho-alfred-watchdog PKG_VERSION:=1 PKG_RELEASE:=$(GLUON_VERSION).$(GLUON_SITE_CODE)-$(GLUON_RELEASE).$(GLUON_CONFIG_VERSION) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/ffho-alfred-watchdog SECTION:=ffho CATEGORY:=Workarounds TITLE:=A.L.F.R.E.D. crash watchdog DEPENDS:=+busybox MAINTAINER:=Freifunk Hochstift URL:=https://git.c3pb.de/freifunk-pb/ffho-packages endef define Package/ffho-alfred-watchdog/description Monitors whether or not the A.L.F.R.E.D. is still running on a node or not. Version 2013.x crashes from time to time and thus some nodes dis- appear from the map. It is thus suitable to monitor the state of the daemon on the node itself by periodically making requests to avoid un- necessary support-requests and manual restarts of these nodes. In a failure state, the daemon can simply be restarted by triggering its init-script. Please note that the bug is most likely gone in v2014.1 and newer and and thus the package does not need to be included in the firmware in newer firmwares. endef define Build/Prepare endef define Build/Configure endef define Build/Compile endef define Package/ffho-alfred-watchdog/install $(INSTALL_DIR) $(1)/bin/ $(INSTALL_DIR) $(1)/lib/gluon/cron/ $(INSTALL_BIN) ./files/bin/* $(1)/bin/ $(INSTALL_DATA) ./files/lib/gluon/cron/* $(1)/lib/gluon/cron/ endef $(eval $(call BuildPackage,ffho-alfred-watchdog))