From e7eacf16f52a69d73afbdfda62d2d181282fbdf4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 27 Apr 2010 09:35:03 -0700 Subject: [PATCH] xenserver: Avoid using unset $nice variable in /etc/init.d/openvswitch. Reported-by: Justin Pettit --- xenserver/etc_init.d_openvswitch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 27048e7e..bf7ae4e8 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -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. -- 2.30.2