From ca796b169e12d420a27ce18d75a80d689c6f3822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 26 Sep 2020 11:21:29 +0200 Subject: Add packages for testing --- sentinel-fwlogs/files/init | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 sentinel-fwlogs/files/init (limited to 'sentinel-fwlogs/files/init') diff --git a/sentinel-fwlogs/files/init b/sentinel-fwlogs/files/init new file mode 100755 index 0000000..955b333 --- /dev/null +++ b/sentinel-fwlogs/files/init @@ -0,0 +1,25 @@ +#!/bin/sh /etc/rc.common + +USE_PROCD=1 +START=99 +STOP=10 + + +start_service() { + source /lib/functions/sentinel.sh + source /usr/libexec/sentinel/fwlogs-defaults.sh + allowed_to_run "fwlogs" || return 1 + + config_load sentinel + local nflog_group nflog_threshold + config_get nflog_group fwlogs nflog_group "$DEFAULT_NFLOG_GROUP" + + procd_open_instance + procd_set_param command /usr/bin/sentinel-fwlogs + procd_append_param command --nflog-group="$nflog_group" + procd_set_param respawn 3600 5 5 + procd_set_param stdout 1 + procd_set_param stderr 1 + procd_set_param file /etc/config/sentinel + procd_close_instance +} -- cgit v1.2.3