xenserver: Avoid using unset $nice variable in /etc/init.d/openvswitch.
[cascardo/ovs.git] / xenserver / etc_init.d_openvswitch
index c972988..bf7ae4e 100755 (executable)
@@ -195,15 +195,15 @@ function start_daemon {
         exit 1
     elif test -n "$strace_log"; then
         local mode=strace
-        set -- $nice strace -o "$strace_log" $strace_opt "$@"
+        set -- strace -o "$strace_log" $strace_opt "$@"
     elif test -n "$valgrind_log"; then
         local mode=valgrind
-        set -- $nice valgrind --log-file="$valgrind_log" $valgrind_opt "$@"
+        set -- valgrind --log-file="$valgrind_log" $valgrind_opt "$@"
     else
         local mode=production
         eval local pidfile=\$${DAEMON}_PIDFILE
         install -d -m 755 -o root -g root `dirname $VSWITCHD_PIDFILE`
-        set -- $nice "$@" --pidfile="$pidfile" --detach $monitor_opt --no-chdir
+        set -- "$@" --pidfile="$pidfile" --detach $monitor_opt --no-chdir
     fi
 
     # Configure niceness.
@@ -285,7 +285,7 @@ Restarting Open vSwitch on a live server is not guaranteed to work.  It is
 provided as a convenience for those situations in which it does work.
 
 EOF
-    read -s -r -n 1 -p "Countinue with restart (y/N): " response
+    read -s -r -n 1 -p "Continue with restart (y/N): " response
     printf "\n"
     case "$response" in
         y|Y)