Re: [Tracker] Dinit support
Reply #58 –
A curiosity regarding the new `dinitcheck --online` option, I saw that for user services, it seems to be required in order to list every available service, without it just showing parts of dependencies:
From root:
# dinitcheck --online -u -d /run/turnstiled/1000/srv.922/ -p /run/user/1000/dinitctl
Checking service: boot...
Checking service: system...
Service 'system', error reading dependencies from directory /usr/lib/dinit.d/user/boot.d: No such file or directory
Checking service: wireplumber...
Checking service: pipewire-pulse...
Checking service: pipewire...
Checking service: dbus...
Performing secondary checks...
Secondary checks complete.
One or more errors/warnings issued.
# dinitcheck -u -d /run/turnstiled/1000/srv.922/ -p /run/user/1000/dinitctl
Checking service: boot...
Checking service: system...
Service 'system', error reading dependencies from directory /usr/lib/dinit.d/user/boot.d: No such file or directory
Checking service: wireplumber...
Unable to load service 'wireplumber': service description not found.
Checking service: pipewire-pulse...
Unable to load service 'pipewire-pulse': service description not found.
Performing secondary checks...
Secondary checks complete.
One or more errors/warnings issued.
From the normal user:
~> dinitcheck --online
Checking service: boot...
Checking service: system...
Service 'system', error reading dependencies from directory /usr/lib/dinit.d/user/boot.d: No such file or directory
Checking service: wireplumber...
Checking service: pipewire-pulse...
Checking service: pipewire...
Checking service: dbus...
Performing secondary checks...
Secondary checks complete.
One or more errors/warnings issued.
~> dinitcheck
Checking service: boot...
Unable to load service 'boot': service description not found.
Performing secondary checks...
Secondary checks complete.
One or more errors/warnings issued.
Could it be maybe turnstile not setting it up exactly right, hence those warnings? Everything else under dinitctl works perfectly under both root and the normal user.
I saw a patch about hardcoding user service paths by default https://github.com/davmac314/dinit/commit/a77acc962aed32b0378cb9185b8d7cf7ad0ae14d which i guess turnstile already overrides, but maybe has something to do here.
Also, if it works fine, can i use `dinitcheck --online` instead of iterating with `find` over user service locations to get a listing of what's available?