Do you think this is any better? ============================= #!/bin/sh test_for_myrequirement || exit 1 exec mydaemon -myarg1 -myarg2 =============================
This does not accomplish the same thing at all: it does not ensure that myrequirement is at least attempted before mydaemon runs. Instead, it conditions the readiness of mydaemon to that of myrequirement. So, it is "better" in the sense that it does not control another service from a run script, but it is even further from what the OP wants. Any reference to another service in a run script is going to be quirky at best. Managing all kinds of dependencies between services is really best done *outside* of run scripts, which is why s6-rc exists. It does not currently have all the expressive power of systemd for dependencies, but in the future, it will. -- Laurent