16 |
|
|
17 |
case "$1" in |
case "$1" in |
18 |
start) |
start) |
19 |
echo -e ${COLOREDSTAR}"Starting mCore client daemon ..." |
rc_print "Starting mCore client daemon ..." |
20 |
start-stop-daemon --start --exec /usr/sbin/sslsvd \ |
start-stop-daemon --start --exec /usr/sbin/sslsvd \ |
21 |
--pidfile /var/run/mcored.pid --background --make-pidfile \ |
--pidfile /var/run/mcored.pid --background --make-pidfile \ |
22 |
-- -U ${SSL_USER} -/ ${CHROOT_DIR} -Z ${SSL_CERT} -K ${SSL_KEY} \ |
-- -U ${SSL_USER} -/ ${CHROOT_DIR} -Z ${SSL_CERT} -K ${SSL_KEY} \ |
28 |
;; |
;; |
29 |
|
|
30 |
stop) |
stop) |
31 |
echo -e ${COLOREDSTAR}"Stopping mCore client daemon ..." |
rc_print "Stopping mCore client daemon ..." |
32 |
start-stop-daemon --quiet --stop --pidfile /var/run/mcored.pid |
start-stop-daemon --quiet --stop --pidfile /var/run/mcored.pid |
33 |
evaluate_retval |
evaluate_retval |
34 |
|
|
47 |
;; |
;; |
48 |
|
|
49 |
*) |
*) |
50 |
echo "Usage: $0 {start|stop|restart|status}" |
rc_echo "Usage: $0 {start|stop|restart|status}" |
51 |
exit 1 |
exit 1 |
52 |
;; |
;; |
53 |
esac |
esac |