A Look at minit
Sys-V init has long been the standard solution for booting. It's kind of easy to work with, it kind of works and everybody kind of knows it. However, being open minded, let's look at an alternative approach.
There are quite a few alternatives. All of them focus on improving boot times. This is accomplished by starting and running different processes simultaneously and asynchronously. Doing type of boot attempts to use all (more) parts of the hardware simultaneously and avoid having to wait for slow hardware.
In an embedded setting, one more factor to look for is keeping the footprint and number of processes down (each process comes with an overhead - albeit small).
One of the alternatives that I've looked at is minit by Felix von Leitner of diet-libc fame. What can it do? Well, the most basic feature is that it can start services and takes dependencies into account, e.g. it waits for the network to be up before it starts the web server. It also does respawning and handles ctrl+alt+delete.
Being the brain child of von Leitner, it is also minimalist (to the extreme?) and works with diet-libc. So, how does it work?
The configuration lives in /etc/minit, where each sub-directory contains one or services. Each service is configured from a number of symlinks and text files, all listed in detail in this howto. Basically, you create a symlink called "run" pointing at the program to start, a text file called "depends" with the names of any prerequisite services, an empty file called "respawn" if the service is to be respawned upon termination, and so on.
Having configured all your services, create a directory called "default" and add a depends file there listing your services. That will kickstart the system.
Johan Thelin is a consultant working with Qt, embedded and free
software. On-line, he is known as e8johan.
- Readers' Choice Awards 2013
- Mars Needs Women
- Sublime Text: One Editor to Rule Them All?
- RSS Feeds
- Raspberry Pi: the Perfect Home Server
- December 2013 Issue of Linux Journal: Readers' Choice
- Linux Kernel News - November 2013
- IBM Will Minimize Impact of Future Disasters
- Tech Tip: Really Simple HTTP Server with Python
- Linux Systems Administrator
54 min 27 sec ago
- This should be very helpful
2 hours 8 min ago
- As much as I share your point
4 hours 28 min ago
- So girls had it better ?
7 hours 59 min ago
- Reply to comment | Linux Journal
8 hours 19 min ago
- why is GNOME 3 in the fifth position at 14.1 %?
13 hours 52 min ago
- Sublime Is Brilliant!
18 hours 55 min ago
19 hours 14 min ago
- Rapid[Disk,Cache] better than native ram caching?
19 hours 39 min ago
- Nothing is perfect
19 hours 52 min ago