Description
While investigating why the pmlogger service doesn't start ("protocol failure") when there is no local pmcd service running, I noticed that pmlogger_check.sh
only notifies systemd when the primary pmlogger is started:
pcp/src/pmlogger/pmlogger_check.sh
Lines 1013 to 1015 in 2ce509b
This is a problem if I don't have a primary pmlogger (which can be the case for the PCP container, but could also happen with a regular bare-metal installation). afaics the pmlogger service as a whole should be marked as "running" if and only if all configured pmloggers started. OTOH, that means we need multiple systemd units (templates), which brings us back to #896.
"notify the first pmlogger" as suggested in the comment works as a workaround, but then systemctl status pmlogger
just shows the status of the first pmlogger :|