initscript: pass complete path to pidfile to status command xs5.7
authorIan Campbell <ian.campbell@citrix.com>
Thu, 17 Dec 2009 14:46:52 +0000 (14:46 +0000)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Dec 2009 17:56:01 +0000 (09:56 -0800)
commitd1c8c9e433d18bf3446701e07557087f9078d840
treea1f8bdfca091aecf22b15c093c6cf09c8d755166
parentdac3c52f893f7df16f935ef4875c5467abd4ea23
initscript: pass complete path to pidfile to status command

Older versions of RHEL/CentOS used pifof in preference to the pidfile
and hence we got away with passing just the basename instead of
including the full path. Using pidof first doesn't make much sense and
this was fixed in RHEL 5 update 4 (see https://bugzilla.redhat.com/show_bug.cgi?id=440658)

This means that on RHEL 5.4 "service vswitch status" always returned
"ovs-vswitchd is stopped" even if it was running. Fix this issue by
passing in the correct pidfile name.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
xenserver/etc_init.d_vswitch