aboutsummaryrefslogtreecommitdiffstats
path: root/testing/crtmpserver/crtmpserver.initd
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-12-03 09:10:01 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-12-13 08:46:26 +0000
commit34cba518184ea553d3184da7de8b502854f5d583 (patch)
tree158b12338627adecd585c7f82557ca3f1e3616d2 /testing/crtmpserver/crtmpserver.initd
parent1f76fbff04e512d04537262b41cfb2cc98b3518a (diff)
downloadaports-34cba518184ea553d3184da7de8b502854f5d583.tar.bz2
aports-34cba518184ea553d3184da7de8b502854f5d583.tar.xz
testing/crtmpserver: new aport
Diffstat (limited to 'testing/crtmpserver/crtmpserver.initd')
-rw-r--r--testing/crtmpserver/crtmpserver.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/crtmpserver/crtmpserver.initd b/testing/crtmpserver/crtmpserver.initd
new file mode 100644
index 0000000000..aa967b3d99
--- /dev/null
+++ b/testing/crtmpserver/crtmpserver.initd
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright (c) 2011 http://foxpa.ws
+# All rights released
+
+description="Runs C++ RTMP Server on Gentoo"
+
+depend()
+{
+ need net
+}
+
+start()
+{
+ ebegin "Starting C++ RTMP Server"
+ start-stop-daemon --start --quit \
+ --exec /usr/sbin/crtmpserver --daemon --uid=${RTMPD_USER} --pid=/var/run/crtmpserver.pid ${CONFFILE}
+ eend ${?}
+}
+
+stop()
+{
+ ebegin "Stopping C++ RTMP Server"
+ start-stop-daemon --stop --quiet \
+ --exec /usr/sbin/crtmpserver --pid=/var/run/crtmpserver.pid
+ eend ${?}
+}