xenserver: Use daemon-specific dir for pidfile in /etc/init.d/openvswitch.
authorBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 16:35:45 +0000 (09:35 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 16:35:45 +0000 (09:35 -0700)
Reported-by: Justin Pettit <jpettit@nicira.com>
xenserver/etc_init.d_openvswitch

index bf7ae4e8a9910662a0810b10b8e14d86a233028c..24d82261fd407debf0de7d21a55e6f44f04384ce 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