Annotation of /mcore-src/trunk/mcore-tools/daemon/client/mcored.rc.in
Parent Directory | Revision Log
Revision 1304 -
(hide annotations)
(download)
Sun Feb 6 23:44:46 2011 UTC (13 years, 7 months ago) by niro
Original Path: mcore-src/trunk/mcore-tools/daemon/client/mcored.rc
File size: 958 byte(s)
Sun Feb 6 23:44:46 2011 UTC (13 years, 7 months ago) by niro
Original Path: mcore-src/trunk/mcore-tools/daemon/client/mcored.rc
File size: 958 byte(s)
-fixed wrong variable, thats the chroot dir and not the keyring! -be more silent
1 | niro | 1248 | #!/bin/bash |
2 | # $Id$ | ||
3 | |||
4 | #%rlevels: 3:s 0:k | ||
5 | #%start: 90 | ||
6 | #%stop: 10 | ||
7 | |||
8 | #deps | ||
9 | #%needs: | ||
10 | #%before: | ||
11 | #%after: | ||
12 | |||
13 | source /etc/conf.d/rc | ||
14 | source $rc_functions | ||
15 | source /etc/conf.d/mcored | ||
16 | |||
17 | case "$1" in | ||
18 | start) | ||
19 | echo -e ${COLOREDSTAR}"Starting mCore client daemon ..." | ||
20 | start-stop-daemon --start --exec /usr/sbin/sslsvd \ | ||
21 | --pidfile /var/run/mcored.pid --background --make-pidfile \ | ||
22 | niro | 1304 | -- -U ${SSL_USER} -/ ${CHROOT_DIR} -Z ${SSL_CERT} -K ${SSL_KEY} \ |
23 | niro | 1248 | ${OPTS} ${LISTEN_IP} ${LISTEN_PORT} /usr/sbin/mcored |
24 | evaluate_retval | ||
25 | |||
26 | update_svcstatus $1 | ||
27 | splash svc_started "$(basename $0)" 0 | ||
28 | ;; | ||
29 | |||
30 | stop) | ||
31 | echo -e ${COLOREDSTAR}"Stopping mCore client daemon ..." | ||
32 | niro | 1304 | start-stop-daemon --quiet --stop --pidfile /var/run/mcored.pid |
33 | niro | 1248 | evaluate_retval |
34 | |||
35 | update_svcstatus $1 | ||
36 | splash svc_stopped "$(basename $0)" 0 | ||
37 | ;; | ||
38 | |||
39 | restart) | ||
40 | $0 stop | ||
41 | sleep 1 | ||
42 | $0 start | ||
43 | ;; | ||
44 | |||
45 | status) | ||
46 | statusproc /usr/sbin/sslsvd | ||
47 | ;; | ||
48 | |||
49 | *) | ||
50 | echo "Usage: $0 {start|stop|restart|status}" | ||
51 | exit 1 | ||
52 | ;; | ||
53 | esac |