From: John Crispin Date: Sat, 23 May 2015 15:28:56 +0000 (+0000) Subject: conntrack-tools: add init script for conntrackd X-Git-Tag: reboot~3012 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a2d0d58a8ebe43fa532b7da1f22f34465970b35d;p=openwrt%2Fstaging%2Fblogic.git conntrack-tools: add init script for conntrackd Signed-off-by: Stijn Tintel SVN-Revision: 45737 --- diff --git a/package/network/utils/conntrack-tools/Makefile b/package/network/utils/conntrack-tools/Makefile index 2c479c0849c1..978467b01657 100644 --- a/package/network/utils/conntrack-tools/Makefile +++ b/package/network/utils/conntrack-tools/Makefile @@ -63,6 +63,8 @@ define Package/conntrack-tools/install $(PKG_INSTALL_DIR)/usr/sbin/conntrack \ $(PKG_INSTALL_DIR)/usr/sbin/conntrackd \ $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/conntrackd.init $(1)/etc/init.d/conntrackd endef $(eval $(call BuildPackage,conntrack-tools)) diff --git a/package/network/utils/conntrack-tools/files/conntrackd.init b/package/network/utils/conntrack-tools/files/conntrackd.init new file mode 100644 index 000000000000..a51eb885f2e9 --- /dev/null +++ b/package/network/utils/conntrack-tools/files/conntrackd.init @@ -0,0 +1,17 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2015 OpenWrt.org + +START=21 +STOP=89 + +USE_PROCD=1 +PROG="/usr/sbin/conntrackd" + +start_service() { + procd_open_instance + + procd_set_param command $PROG -C /etc/conntrackd/conntrackd.conf + procd_set_param respawn + + procd_close_instance +}