Artix Linux Forum

Init systems => dinit => Topic started by: n00b on 08 February 2025, 19:57:39

Title: Pipewire on dinit.
Post by: n00b on 08 February 2025, 19:57:39
Code: [Select]
dinitctl restart pipewire
dinitctl: cannot stop service 'pipewire' due to the following dependents:
  pipewire-pulse wireplumber
https://gitea.artixlinux.org/packages/pipewire-dinit/src/branch/master/pipewire.user

Should not pipewire depend on  pipewire-pulse and wireplumber? Or do i have it backwards in my mind?
Should not a restart of pipewire restart them too?


I guess I am asking how to make the three services an
Code: [Select]
internal
service to restart them all, gracefully.
Title: Re: Pipewire on dinit.
Post by: davmac on 09 February 2025, 02:28:46
Quote
Should not pipewire depend on  pipewire-pulse and wireplumber? Or do i have it backwards in my mind?
Should not a restart of pipewire restart them too?

It can't be both of those things. If pipewire depended on pipewire-pulse and wireplumber, then you would be able to restart pipewire without restarting pipewire-pulse/wireplumber. (But you can't, because you do in fact have it backwards).

Quote
I guess I am asking how to make the three services an internal service to restart them all, gracefully.

I don't think you understand what an internal service is. An internal service is just a marker in the service hierarchy, it is not directly associated with any process.

Changing the type of the services to internal wouldn't be correct (it wouldn't run the actual service processes) and would not change the fact that you can't restart the pipewire service without restarting the others, due to the dependencies.

Use --force if you want to restart the dependents as well.
Title: Re: Pipewire on dinit.
Post by: n00b on 09 February 2025, 03:31:25
Thank you