From 1f256c11cd354fe1494af6846cf31c7ee2698e6c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 27 Apr 2010 09:37:06 -0700 Subject: [PATCH] xenserver: Use start_daemon for xenserverd also in /etc/init.d/openvswitch. Reported-by: Justin Pettit --- xenserver/etc_init.d_openvswitch | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index bf4dd6c8..2ce9e774 100755 --- a/xenserver/etc_init.d_openvswitch +++ b/xenserver/etc_init.d_openvswitch @@ -252,13 +252,7 @@ function start_brcompatd { } function start_xenserverd { - if [ ! -d "$XENSERVERD_RUN_DIR" ]; then - install -d -m 755 -o root -g root "$XENSERVERD_RUN_DIR" - fi - cd "$XENSERVERD_RUN_DIR" - - install -d -m 755 -o root -g root `dirname $XENSERVERD_PIDFILE` - action "Starting ovs-xenserverd" "$xenserverd" --no-chdir --pidfile=$XENSERVERD_PIDFILE --detach $monitor_opt -vANY:CONSOLE:EMER + start_daemon XENSERVERD "$xenserverd" } function stop_daemon { -- 2.30.2