Magellan Linux

Diff of /trunk/usbip/usbipdevd.rc

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

revision 176 by niro, Wed May 9 15:06:06 2007 UTC revision 1531 by niro, Mon Sep 19 16:02:35 2011 UTC
# 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    
16  exec=/usr/sbin/usbipdevd  exec=/usr/sbin/usbipdevd
17    
18  case "$1" in  case "$1" in
19   start)   start)
20   echo -e ${COLOREDSTAR}"Starting usbip-device daemon ..."   rc_print "Starting USBIP Device-Export daemon ..."
21   start-stop-daemon --quiet --start --exec ${exec} \   start-stop-daemon --quiet --start --exec ${exec} \
22   --pidfile /var/run/usbipdevd.pid \   --pidfile /var/run/usbipdevd.pid \
23   --make-pidfile --background   --make-pidfile --background
# Line 28  case "$1" in Line 28  case "$1" in
28   ;;   ;;
29    
30   stop)   stop)
31   echo -e ${COLOREDSTAR}"Stopping usbip-device daemon ..."   rc_print "Stopping USBIP Device-Export daemon ..."
32   start-stop-daemon --quiet --stop \   start-stop-daemon --quiet --stop \
33   --pidfile /var/run/usbipdevd.pid   --pidfile /var/run/usbipdevd.pid
34   evaluate_retval   evaluate_retval
# Line 48  case "$1" in Line 48  case "$1" in
48   ;;   ;;
49    
50   *)   *)
51   echo "Usage: $0 {start|stop|restart|status}"   rc_echo "Usage: $0 {start|stop|restart|status}"
52   exit 1   exit 1
53   ;;   ;;
54  esac  esac

Legend:
Removed from v.176  
changed lines
  Added in v.1531