xenserver: Avoid using unset $nice variable in /etc/init.d/openvswitch.
authorBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 16:35:03 +0000 (09:35 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 16:35:03 +0000 (09:35 -0700)
Reported-by: Justin Pettit <jpettit@nicira.com>
xenserver/etc_init.d_openvswitch

index 27048e7ec394fe400f367247481232bae6a8fad7..bf7ae4e8a9910662a0810b10b8e14d86a233028c 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.