Update TODO with inetd proposal, and minor README cleanup.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2014-04-10 10:26:46 +02:00
parent 12b09bb80b
commit a8a103a521
2 changed files with 23 additions and 4 deletions
+1 -4
View File
@@ -12,9 +12,6 @@ This modern finit has extensions for service monitoring, multiple TTYs,
one-shot tasks, runlevels and plugins for I/O monitoring, service
callbacks and various hooks to extend and adapt it to your needs.
Finit restores the raw performance of your system and gives you full
control of the ``main()`` loop of ``/sbin/init``!
Features
--------
@@ -97,7 +94,7 @@ calls its built-in run-parts(8) on the ``/etc/finit.d/`` directory, if
it exists. Similar to how the ``/ec/rc.local`` file works in most other
inits, only finit runs a directory of scripts. This replaces the
earlier support for a ``/usr/sbin/services.sh`` script in the original
finit_.
finit.
Runlevels
+22
View File
@@ -14,6 +14,28 @@ similiar to launchd, the goal of finit is to be a FAST replacement for:
The main goal is to be FAST. Secondary goals are to be: small, simple
and with a very low dependency on external packages.
Inetd
-----
Simple way of running Interne services on demand, like the old inetd.
inetd [RUNLVL] SVC tcp/udp wait/nowait @user /path/to/daemon args -- descr
or
inetd [RUNLVL] SVC tcp/udp wait/nowait @user /etc/finit.d/script.inetd args -- descr
Where the latter is simply a script file with the following contents:
exec = /path/to/daemon
iface = IFNAME[:PORT], IFNAME[:PORT], ...
Example:
/etc/finit.conf:
inetd [2345] ssh tcp nowait @root ssh.inetd -- SSH Daemon
/etc/finit.d/ssh.inetd:
exec = /sbin/dropbear
iface = vlan1:222, vlan2, vlan3, vlan4
Priority
--------