-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Available, disabled services in list #52
Comments
This would require dinit (or at least dinitctl) to be able to determine which services have been installed (but not yet loaded). One option would be to assume that every file in the services directory is in fact a service description file, but that seems liable to cause issues; or, attempt to parse every such file as a service description in order to weed out non-service-description files, but that seems like an ugly solution and doesn't completely solve possible issues anyway; or, to have a separate file listing all installed services, which is less prone to accidental confusion between service and non-service but which requires this file to be updated appropriate when services are installed or uninstalled. This latter would be my preferred approach, and patches implementing this are welcome.
Sure, patches welcome for this too. |
Thanks, on a second thought, im not sure if this is the wanted behavior when someone do list... Maybe an option to include them like systemd --all. Or another app is also a good idea. Check if the services are valid is also usefull... even if to do that you just have to try to start it... well an app can check multiple... I think that the problem to fix here is, "whats the name of the service of the package i installed ?" |
It could be just an app that lists the files in the 2 or 3 folders where dinit looks for services. Or it could be a kind of a diagniostic tool. Or do nothing is also an option... |
Have thought about it a bit more. I think it makes sense to add an |
good! |
A step back, how to list the running services ? |
You can also use With all above in mind, if |
that was fast! It shows [{+} ] for all the 49 services. Some service has pid:xxx but not all of the really running services. |
what services should be shown ? I think, the running services, the enabled services, the manually started and stopped services ? idk , the manually started one-shot services ? idk. Maybe the "system services" could be hidden, and shown only if the future "--all" option is set ? |
Ok so it sounds like all services are running and correctly showing as running.
Only process and bgprocess services can have a pid associated.
There aren't any services built-in to dinit. The only (somewhat) mandatory service is "boot". The services you are seeing are what the distribution provides |
Some example: loginready, setup, cleanup, pseudofs, sysusers, vconsole, mount, hostname, misc, modules... |
Dinit doesn't make any distinction between these services and other services. I think such functionality would have to be part of an external tool. I guess I consider this out-of-scope for DInit itself. |
If service don't have any PID-file or ServiceStop command - we can interpret that service as "one time command" (or have a specific "not script" type for that) and those service are immediately "stopped" after command end. |
I'm the OP, this is my new account. |
The list command should show also the installed but not enabled, never started services.
And maybe list by status ?
The text was updated successfully, but these errors were encountered: