Artix Linux Forum

Init systems => dinit => Topic started by: n00b on 23 January 2025, 15:38:57

Title: sound
Post by: n00b on 23 January 2025, 15:38:57
I know nothing.

I had a sound issue, which happens on this old machine. Often I need to reboot to fix them.

So i was thinking that I could set up dinit to just kill and restart all the services with one command. Since my sound uses bluetooth, and it sometimes also needs reset I guess I should include these too?

something like like
dinitctl restart sound

So, how should I set this up? Assuming pipewire




Title: Re: sound
Post by: kiblaster on 26 January 2025, 13:12:51
You can make a script to restart the services.

Code: [Select]
#!/bin/sh
dinitctl -u restart ...
dinitctl -u restart ...

Or maybe a service that depends on those, check dinit man pages.