aboutsummaryrefslogtreecommitdiffstats
path: root/testing/crtmpserver/crtmpserver.initd
diff options
context:
space:
mode:
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 ${?}
+}