nettings / medianet

A distribution overlay for Raspbian and similar systems to create a JACK-based embedded system for audio processing and streaming. Contract work for [mn] medianet. https://www.medianet-home.de
Other
11 stars 2 forks source link

Try BindsTo for JACK clients for added robustness in case jackd dies #61

Closed nettings closed 9 months ago

nettings commented 4 years ago

When killing jackd, services with "Requires=mn_jackd.service" will try to reconnect to a no longer existing server. This could be avoided by using "BindsTo" for those services that cannot function at all without jackd, as they will be stopped immediately when jackd goes down. Just a mental note, not really a pressing issue, particularly since I haven't seen jackd die on a Pi, ever. But eventually it would be nice to be able to restart all jackd clients on-the-fly with a single command, without entering any undefined states in between.

nettings commented 3 years ago

BindsTo works only in one direction, i.e. a jack client would die when jack dies. But it does not restart when Jack restarts. PartOf might do that, but not in a nice way. Also, when testing, be sure to kill services with an error signal such as -ILL, since -KILL or -TERM trigger a normal exit, and systemd will not try to restart in those cases.