xenserver: Use daemon-specific dir for pidfile in /etc/init.d/openvswitch.
[sliver-openvswitch.git] / xenserver / etc_init.d_openvswitch
index bf7ae4e..24d8226 100755 (executable)
@@ -202,7 +202,7 @@ function start_daemon {
     else
         local mode=production
         eval local pidfile=\$${DAEMON}_PIDFILE
-        install -d -m 755 -o root -g root `dirname $VSWITCHD_PIDFILE`
+        install -d -m 755 -o root -g root `dirname $pidfile`
         set -- "$@" --pidfile="$pidfile" --detach $monitor_opt --no-chdir
     fi