aboutsummaryrefslogtreecommitdiffstats
path: root/testing/crtmpserver/crtmpserver.initd
blob: aa967b3d99e728f7fc46fe91c45f32a274cc3a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 ${?}
}