From: Ben Pfaff Date: Tue, 27 Apr 2010 16:35:03 +0000 (-0700) Subject: xenserver: Avoid using unset $nice variable in /etc/init.d/openvswitch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7eacf16f52a69d73afbdfda62d2d181282fbdf4;p=openvswitch xenserver: Avoid using unset $nice variable in /etc/init.d/openvswitch. Reported-by: Justin Pettit --- 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.