From: Ben Pfaff Date: Tue, 27 Apr 2010 16:37:06 +0000 (-0700) Subject: xenserver: Use start_daemon for xenserverd also in /etc/init.d/openvswitch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f256c11cd354fe1494af6846cf31c7ee2698e6c;p=openvswitch xenserver: Use start_daemon for xenserverd also in /etc/init.d/openvswitch. Reported-by: Justin Pettit --- 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 {