Re: Yet Another Init System? Nitro init.
Reply #8 –
I started to mess with nitro; seems to me that the services folder should not be the parent of the system startup, I hacked the code somewhat to move services into its own folder so now my version looks like
/etc/nitro/levels/default/svc1/...svcn/ SYS/
| /single/....
|
/sv/asvc1...asvn
|
services-->levels/default
but I will likely want to allow services to be in /run/nitro, but currently /SYS/ has to be in a known location before setup starts. A bit more c hacking will might allow /etc/nitro/SYS/ to be separated from the services folder (maybe LOG as well).
To excite Worm_Jim here is my first working nsm code
obin@artix-runit:~
$ nsm -h
______ ____ __ __
╔╗╔╔═╗╔╦╗ Nitro Service Manager for Artix Linux (0.0.0)
║║║╚═╗║║║ Source:
╝╚╝╚═╝╩ ╩ MIT License
[nsm] Manage and view nitro services
[nsm] Made specifically for Artix Linux
[nsm] Author: replabrobin
robin@artix-runit:~
$ nsm -v
> - artix-runit (/etc/nitro/services) - 17 services
SERVICE STATE ENABLED PID COMMAND TIME
✔ acpid UP-0 true 817 acpid 3 hours
✔ agetty@tty1 UP-0 true 823 sh 3 hours
✔ agetty@tty2 UP-0 true 822 sh 3 hours
✔ agetty@tty3 UP-0 true 832 sh 3 hours
✔ agetty@tty4 UP-0 true 829 sh 3 hours
✔ agetty@tty5 UP-15 true 2231 sh 41 minutes
✔ agetty@tty6 UP-0 true 838 sh 3 hours
✔ alsabeep UP-0 true 834 alsabeep-daemon 3 hours
✔ avahi-daemon UP-0 true 837 avahi-daemon: run 3 hours
✔ bluetoothd UP-0 true 825 bluetoothd 3 hours
✔ cronie UP-0 true 827 crond 3 hours
✔ dbus UP-0 true 816 dbus-daemon 3 hours
✔ LOG UP-0 true 819 logger 3 hours
✔ metalog UP-0 true 831 metalog [MASTER] 3 hours
✔ NetworkManager UP-0 true 815 NetworkManager 3 hours
✔ sshd UP-0 true 820 sshd -D [listener 3 hours
✔ udevd UP-0 true 840 udevd 3 hours