2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-29 15:28:56 +00:00

xenserver: Avoid using unset $nice variable in /etc/init.d/openvswitch.

Reported-by: Justin Pettit <jpettit@nicira.com>
This commit is contained in:
Ben Pfaff
2010-04-27 09:35:03 -07:00
parent 070644563c
commit e7eacf16f5

View File

@@ -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.