Skip to content

Incorrect reference to mc_event_trigger.local #244

Description

@petarturukalo

The contrib/mc_event_trigger file deployed to the /etc/ras/triggers dir (i.e. TRIGGER_DIR from misc/rasdaemon.env), runs a mc_event_trigger.local file with [ -x ./mc_event_trigger.local ] && . ./mc_event_trigger.local. I'm assuming this mc_event_trigger.local file is intended to be in the same trigger directory as mc_event_trigger, the /etc/ras/triggers dir, but when triggered under systemd only the mc_event_trigger file is ran and not the mc_event_trigger.local.

This happens because mc_event_trigger.local is referenced with a relative path ./ but running under systemd the actual working directory is / and not the expected /etc/ras/triggers dir, e.g.

Snippet added to mc_event_trigger to get the working directory.
Image

Journalctl confirming it was triggered.
Image

Gotten working directory shows as root /.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions