5 # Required-Start: $remote_fs $local_fs
6 # Required-Stop: $remote_fs $local_fs
9 # Short-Description: start dpdk runtime environment
14 PATH="/sbin:/bin:/usr/bin"
16 [ -d /lib/dpdk ] || exit 0
18 # Define LSB log_* functions.
19 # Depend on lsb-base (>= 3.2-14) to ensure that this file is present
20 # and status_of_proc is working.
21 . /lib/lsb/init-functions
26 log_action_begin_msg "Starting DPDK environment" "dpdk"
27 output=$(/lib/dpdk/dpdk-init start 2>&1) || error="$?"
28 if [ ! -z "$output" ]; then
29 echo "$output" | while read line; do
30 log_action_cont_msg "$line"
33 log_action_end_msg $error
41 output=$(/lib/dpdk/dpdk-init --status 2>&1) || error="$?"
42 if [ ! -z "$output" ]; then
43 echo "$output" | while read line; do
44 log_action_cont_msg "$line"
47 log_action_end_msg $error
51 echo "Usage: $0 {start|stop|restart|force-reload|status}"