Magellan Linux

Diff of /trunk/remserial/remserial.rc

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

revision 498 by niro, Fri Feb 22 11:45:42 2008 UTC revision 1321 by niro, Wed May 11 22:29:40 2011 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /root/magellan-cvs/src/remserial/remserial.rc,v 1.2 2008-02-22 11:45:42 niro Exp $  # $Id$
3    
4  #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k  #%rlevels: 3:s 4:s 5:s 0:k 1:k 2:k 6:k
5  #%start: 90  #%start: 90
# Line 10  Line 10 
10  #%before:  #%before:
11  #%after:  #%after:
12    
13  source /etc/sysconfig/rc  source /etc/conf.d/rc
14  source $rc_functions  source $rc_functions
15  source /etc/conf.d/remserial  source /etc/conf.d/remserial
16    
# Line 20  checkconfig() Line 20  checkconfig()
20   do   do
21   if [[ -z $(eval echo \$${i}) ]]   if [[ -z $(eval echo \$${i}) ]]
22   then   then
23   echo "Please set up /etc/conf.d/remserial proberly... aborted"   rc_echo "Please set up /etc/conf.d/remserial proberly... aborted"
24   exit 1   exit 1
25   fi   fi
26   done   done
# Line 29  checkconfig() Line 29  checkconfig()
29    
30  case "$1" in  case "$1" in
31   start)   start)
32   echo -e ${COLOREDSTAR}"Starting remote-serial daemon ..."   rc_print "Starting remote-serial daemon ..."
33   checkconfig   checkconfig
34   start-stop-daemon --quiet --start --exec /usr/bin/remserial \   start-stop-daemon --quiet --start --exec /usr/bin/remserial \
35   --pidfile /var/run/remserial.pid --make-pidfile --background \   --pidfile /var/run/remserial.pid --make-pidfile --background \
# Line 41  case "$1" in Line 41  case "$1" in
41   ;;   ;;
42    
43   stop)   stop)
44   echo -e ${COLOREDSTAR}"Stopping remote-serial daemon ..."   rc_print "Stopping remote-serial daemon ..."
45   start-stop-daemon --quiet --stop --pidfile /var/run/remserial.pid   start-stop-daemon --quiet --stop --pidfile /var/run/remserial.pid
46   evaluate_retval   evaluate_retval
47    
# Line 60  case "$1" in Line 60  case "$1" in
60   ;;   ;;
61    
62   *)   *)
63   echo "Usage: $0 {start|stop|restart|status}"   rc_echo "Usage: $0 {start|stop|restart|status}"
64   exit 1   exit 1
65   ;;   ;;
66  esac  esac

Legend:
Removed from v.498  
changed lines
  Added in v.1321