mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#!/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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user