Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

mcore-src/trunk/mcore-tools/daemon/client/mcored.rc revision 1304 by niro, Sun Feb 6 23:44:46 2011 UTC mcore-src/trunk/mcore-tools/daemon/client/mcored.rc.in revision 2138 by niro, Fri Jan 10 10:17:44 2014 UTC
# Line 10  Line 10 
10  #%before:  #%before:
11  #%after:  #%after:
12    
13  source /etc/conf.d/rc  source @@CONFDDIR@@/rc
14  source $rc_functions  source $rc_functions
15  source /etc/conf.d/mcored  source @@CONFDDIR@@/mcored
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 @@SBINDIR@@/sslsvd \
21   --pidfile /var/run/mcored.pid --background --make-pidfile  \   --pidfile @@RUNDIR@@/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} \
23   ${OPTS} ${LISTEN_IP} ${LISTEN_PORT} /usr/sbin/mcored   ${OPTS} ${LISTEN_IP} ${LISTEN_PORT} @@SBINDIR@@/mcored
24   evaluate_retval   evaluate_retval
25    
26   update_svcstatus $1   update_svcstatus $1
# Line 28  case "$1" in Line 28  case "$1" in
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 @@RUNDIR@@/mcored.pid
33   evaluate_retval   evaluate_retval
34    
35   update_svcstatus $1   update_svcstatus $1
# Line 43  case "$1" in Line 43  case "$1" in
43   ;;   ;;
44    
45   status)   status)
46   statusproc /usr/sbin/sslsvd   statusproc @@SBINDIR@@/sslsvd
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

Legend:
Removed from v.1304  
changed lines
  Added in v.2138