packages/multimedia/crtmpserver/files/crtmpserver.init
Thomas Heil e236613a49 crtmpserver: import from packages, add myself as the maintainer
This adds the crtmpserver package from the old svn package tree. I adopt
the licensing information and will maintain the package in the future. I
also updated the package to the latest version and ensure that is
building on x86_64, ar71xx and avr32.

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2014-06-23 18:53:18 +02:00

30 lines
565 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2009-2010 OpenWrt.org
START=99
STOP=80
SERVICE_USE_PID=1
CRTMPSERVER_BIN="/usr/bin/crtmpserver"
CRTMPSERVER_CONFIG="/etc/crtmpserver.lua"
CRTMPSERVER_PID="/var/run/crtmpserver.pid"
start()
{
echo "start $CRTMPSERVER_BIN"
start-stop-daemon -S -x "$CRTMPSERVER_BIN" -- --daemon --pid="$CRTMPSERVER_PID" \
"$CRTMPSERVER_CONFIG"
}
stop() {
echo "stop $CRTMPSERVER_BIN"
start-stop-daemon -K -x $CRTMPSERVER_BIN -p $CRTMPSERVER_PID
}
reload()
{
stop
start
}