washed / drempelbox

0 stars 0 forks source link

Do systemd dependency checks inside the application #28

Open washed opened 6 months ago

washed commented 6 months ago

From all the trouble we recently had with our service/unit file, I am wondering if it would make sense to move of those checks into the application itself. This would also allow us to react in a more fine-grained way to problems, i.e:

Inspecting units and targets might be possible with this: https://github.com/lucab/libsystemd-rs

tmh-alex commented 6 months ago

Looks like a solid repo with lots of contributors. Let's do this!

tmh-alex commented 4 months ago

@washed Regarding the sound card issue: Just like the last time I was setting up the Raspi, also this time (I'm now on Bookworm btw.) the sound card got the number 1 assigned. The service file assumes 0 and the service doesn't start automatically as a consequence.