rc_pmcd: fix handling of primary logger link
commit0d05549ced324606f330a9a19e9f9b7ac93fcc2c
authorNathan Scott <nathans@redhat.com>
Tue, 26 Jul 2016 00:52:06 +0000 (26 10:52 +1000)
committerNathan Scott <nathans@redhat.com>
Tue, 26 Jul 2016 00:52:06 +0000 (26 10:52 +1000)
tree9dccd7d82df0b296d2cf194e3b268ec65e7b7a42
parentd00aa310da80e9a7d8ed0192743a34bc72d9d4fe
rc_pmcd: fix handling of primary logger link

Its no longer the case that a pmcd restart causes a primary
pmlogger restart also, so remove assumptions in the rc_pmcd
script that its OK to unconditionally unlink primary logger
state file.  Keep some logic for cleaning up *broken* links
however, since there's no harm in that.  This resolves some
more observed cases of multiple loggers running incorrectly
running after pmcd restart.
src/pmcd/rc_pmcd