blob: f57752825da1e6e7115fa4a030248b04b5ac82ef (
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
28
29
30
31
32
33
34
35
36
37
|
#! /bin/sh
start() {
. /etc/ccxstream.conf
if [ "${CHECK}" = "YES" ] ; then
echo -n "Starting ccXstream : "
start-stop-daemon --start --quiet --exec ${BIN} \
-- ${PARAMS} -C ${SERVERCOMMENT}
status="$?"
test ${status} = "0" && echo OK || echo FAILED
return ${status}
else
echo "Please setup /etc/ccxstream.conf before starting ccXstream"
return 1
fi
}
stop() {
echo -n "Stopping ccXstream : "
start-stop-daemon --stop --quiet --pidfile /var/run/ccxstream.pid
return $?
}
case $1 in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
esac
|