Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/daemon/client/mcored.rc.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2138 - (hide annotations) (download)
Fri Jan 10 10:17:44 2014 UTC (10 years, 4 months ago) by niro
File size: 947 byte(s)
-variable pathes
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 niro 2138 source @@CONFDDIR@@/rc
14 niro 1248 source $rc_functions
15 niro 2138 source @@CONFDDIR@@/mcored
16 niro 1248
17     case "$1" in
18     start)
19 niro 2010 rc_print "Starting mCore client daemon ..."
20 niro 2138 start-stop-daemon --start --exec @@SBINDIR@@/sslsvd \
21     --pidfile @@RUNDIR@@/mcored.pid --background --make-pidfile \
22 niro 1304 -- -U ${SSL_USER} -/ ${CHROOT_DIR} -Z ${SSL_CERT} -K ${SSL_KEY} \
23 niro 2138 ${OPTS} ${LISTEN_IP} ${LISTEN_PORT} @@SBINDIR@@/mcored
24 niro 1248 evaluate_retval
25    
26     update_svcstatus $1
27     splash svc_started "$(basename $0)" 0
28     ;;
29    
30     stop)
31 niro 2010 rc_print "Stopping mCore client daemon ..."
32 niro 2138 start-stop-daemon --quiet --stop --pidfile @@RUNDIR@@/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 niro 2138 statusproc @@SBINDIR@@/sslsvd
47 niro 1248 ;;
48    
49     *)
50 niro 2010 rc_echo "Usage: $0 {start|stop|restart|status}"
51 niro 1248 exit 1
52     ;;
53     esac