rc scripts: always use full paths during process lookup
commit63ce70386acfe0246c7b25d74df1ec4e5c375e59
authorBeat Rubischon <brubisch@redhat.com>
Tue, 6 Sep 2016 22:27:52 +0000 (7 08:27 +1000)
committerNathan Scott <nathans@redhat.com>
Tue, 6 Sep 2016 22:27:52 +0000 (7 08:27 +1000)
tree74329ee17dbb1b9c9e83ce5012a7183b810aa267
parentd7fd423bbfbc49e9f149ba8cb0d1952330492ed7
rc scripts: always use full paths during process lookup

The init scripts failing to start or restart daemons when other
applications have processes called pmcd, pmproxy, etc.

This is because the pcp.env function _get_pids_by_name() does
not check for the full path of the binaries and tries to kill
the foreign process.

In particular, this issue was observed with concurrent use of
UniSpool from http://aki-gmbh.com/en/products/unispool.html as
this has a pmcd process which breaks the start of PCP's pmcd.

This resolves Red Hat BZ #1365424.
src/include/pcp.env