SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Primary target is embedded systems, however there are tutorials for Void, Alpine Linux, Debian GNU/Linux and derivatives (official package for SID).
Caveat: I am not interested by the usual boring discussions/flame wars wrt various init systems. Please answer only if/when you have actually tried finit on Slackware or another OS, possibly in an initramfs or embedded system.
Great, clean syntax. What is the result if you give it a non-existent service, like so:
Code:
initctl status foo-bar
and also for a service that is present but not running, ie, stopped? inxi cares about three init states, running, stopped, and failed/not found.
-v/--version is standard optional to get version info, in this case from finit, but reading its man page it doesn't list support any options at all, so I assume it doesn't have it. It's always nice to be able to get init version, can even get it sometimes from sysvinit using strings on some systems, though that's a special case.
I can't believe I missed initctl since apparently that was also used by Upstart, but I only really ran upstart in vm ubuntu, didn't spend much time on it, figuring, correctly, that it would go away as many Ubuntu projects tend to do.. Mir... Unity... etc...
As far as my experiment shown, finit can track service/task state: running, stopped, crashed/restart/failed (missing the wanted output or dependency of the service), ready (waiting for condition to be ready to start), and missing service configuration (renamed/removed). Any services is a symlink to the /etc/finit.d/available/*.conf that will be retouched using `initctl reload` to update the list of enabled services and then reloading/restarting any updated running services.
The finit man page didn't list any option support, thanks for checking empirically. This should be working with pinxi now, always nice to add support for something new for next inxi, I try to do that in general, but it's hard to predict what will pop up.
For the initctl stuff I have to see the output for the 2 commands, non-existent/failed, and stopped/paused, depends on their syntax, inxi has to know what to look for, it maps all string values to consistent set of 3 values which are the same for all init systems, which are I believe: running, stopped, failed. I don't try to get more granular than that because that part is only used in I think Bluetooth, and for display manager if > 1 I think, tries to see which is running/stopped. Maybe 4 values, I forget, since systemd has stopped and disabled, which are different things. I think some other init tools have stopped/disabled, but most usually have disable remove the command if I remember right.
Bit by bit though, nice to add one, looks like Void is using it, maybe Alpine and Artix may, so it will exist out there in Linux-land.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.