packages/net/samplicator/files/samplicator.init
Nick Hainke a6d7ed4d6d samplicator: update to latest master commit 2021-10-11
The newest master branch has important fixes. However, no new release is
published [0]. Switch to git and update to latest master commit.
This introduces new version scheme by using YYYY-MM-DD of the commit.

In addition, add necessary "PKG_FIXUP" and "PKG_REMOVE_FILES" to allow
compile the new version. Also add enable "PKG_BUILD_PARALLEL".

Further, use a pidfile and remove outdated patches.

https://github.com/sleinen/samplicator/issues/73

Signed-off-by: Nick Hainke <vincent@systemli.org>
2022-10-27 15:18:59 +02:00

19 lines
464 B
Bash

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