xenserver: Use start_daemon for xenserverd also in /etc/init.d/openvswitch.
authorBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 16:37:06 +0000 (09:37 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 16:37:06 +0000 (09:37 -0700)
Reported-by: Justin Pettit <jpettit@nicira.com>
xenserver/etc_init.d_openvswitch

index bf4dd6c88dad4c8ec5665bc37374eb3c204e4ee8..2ce9e7743e7c9e980bdc73fb0843174cc9f015db 100755 (executable)
@@ -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 {