Skip to content

systemd notify is implemented only for the primary pmlogger #1220

Open
@andreasgerstmayr

Description

@andreasgerstmayr

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:

# Notify service manager (if any) for the primary logger ONLY.
# TODO if no primary, notify for the first logger.
[ "$primary" = y ] && args="-N $args"

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 :|

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions