Description of problem: I need to call something in ExecStartPre that I know will fail. But if I do this, it seems that systemd will assume the whole thing failed. I know the return is going to be a failure, but that is what I want. How do I do this? Jon.
I will add that I only need this temporarily, and I have found another solution for the moment (having systemd call a ExecStartPre script that calls what I want and then always gives systemd an "exit 0") so don't go crazy fixing it if you don't have time. I should not even need the pre script soon. But still, I suspect someone else is going to need to do something similar at some point. Apologies if this is /really/ simply done, I'm still learning the systemd service syntax and just made my first systemd-enabled package. Jon.
If you prepend the path with a dash the result will be ignored: ExecStartPre=-/bin/false