blob: 1c47116420ce9d1d30b1aa6ce04b81655a9b5baa (
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
27
|
#!/sbin/runscript
#
#
depend() {
need net
}
start() {
if [ "${CHECK}" = "YES" ] ; then
ebegin "Starting ccXstream"
start-stop-daemon --start --quiet --exec ${BIN} \
-- ${PARAMS} -C ${SERVERCOMMENT}
eend $?
else
eerror "Please setup /etc/conf.d/ccxstream before starting ccXstream"
return 1
fi
}
stop() {
ebegin "Stopping ccXstream"
start-stop-daemon --stop --quiet --pidfile /var/run/ccxstream.pid
eend $?
}
|