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 |
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 |
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 |