Multiple systemd service rules don't apply

I have two systemd rules which are supposed to ignore cerain failure states:

the problem in this setup is, that only the first rule is applied, the second one is ignored. I could put both rules into one, but I have hosts where only one of the two should apply.

Is there a way to do this?

The Matching is defined so that the first rule defines the parameter.
You will have to come up with a better classification of your hosts in the rule condition, maybe a combination of both tags?

ok, I think I don’t follow, what do you suggest? (the goal is to have systems which ignore one service or the other or both having failed)

You should insert a third rule at the top of the ruleset matching both host tags and having both exclude patterns.

ok, this would work for two exclude patterns, but when adding more patterns, I would need to create patterns for all possible combinations, wouldn’t I? Is there a better way?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.