packages/net/samplicator/files/samplicator.init
Nick Hainke 41534e5a19 samplicator: add samplicator
Samplicator receives UDP datagrams on a given port and resends those
datagrams to a specified set of receivers.

Use Cases:
- replicate Flow Samples to multiple receivers
- use with conntrackd to synchronize via unicast to multiple targets

Signed-off-by: Nick Hainke <vincent@systemli.org>
2021-05-03 21:12:35 +02:00

18 lines
417 B
Bash

#!/bin/sh /etc/rc.common
USE_PROCD=1
START=70
SAMPLICATOR_BIN="/usr/sbin/samplicate"
SAMPLICATOR_CONF="/etc/samplicator.conf"
start_service() {
mkdir -p /var/run
procd_open_instance
procd_set_param command $SAMPLICATOR_BIN -c $SAMPLICATOR_CONF
procd_set_param file "$SAMPLICATOR_CONF"
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param respawn
procd_close_instance
}