Anyone tried finit aka fast init on Slackware?
links:
https://troglobit.com/projects/finit/ https://github.com/troglobit/finit 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. |
I'm interested in this, inxi tries to support all init systems, but finit is new to me.
Any idea how it can be detected, does it run on /proc/1/comm ? I'd like to get that supported as soon as possible, I'd never heard of this one. Also, does it have a -v/--version type option Does it use initctl, or is that just optional? Or does it use its own init tool, like systemctl, rcctl, service, etc? I'll add tentative support for that until it's confirmed more with data. Maybe I'll try a void test. I also don't have any data on initctl, in terms of what its output looks like for: initctl status [service] |
Quote:
Quote:
Quote:
Code:
root@app4099:~# initctl status php-fpm |
Great, clean syntax. What is the result if you give it a non-existent service, like so:
Code:
initctl status foo-bar -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... |
finit version can be obtained using -v option
Code:
$ /sbin/finit -v |
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. |
All times are GMT -5. The time now is 03:39 PM. |