mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
1 parent
aa8d6a7294
commit
b149dbc73e
1 file changed
+20
-12
@@ -13,6 +13,7 @@ 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
|
The main goal is to be FAST. Secondary goals are to be: small, simple
|
||||||
and with a very low dependency on external packages.
|
and with a very low dependency on external packages.
|
||||||
|
|
||||||
|
|
||||||
Inetd
|
Inetd
|
||||||
-----
|
-----
|
||||||
|
|
||||||
@@ -30,23 +31,32 @@ to each inetd service. When a client connects the finit will call the
|
|||||||
callback with a `struct in_pktinfo` argument which the callback then can
|
callback with a `struct in_pktinfo` argument which the callback then can
|
||||||
allowed or deny.
|
allowed or deny.
|
||||||
|
|
||||||
|
Alternatively, borrowing from TCP wrappers by Wietse Wenema, a set of
|
||||||
|
`allow` and `deny` directives can be added to `finit.conf` to control
|
||||||
|
inetd services. It could be what IP addreses, networks or interfaces
|
||||||
|
are allowed to connect to the given inetd services. To start with the
|
||||||
|
easiest (and what we need for WeOS at Westermo) is allow/deny per iface.
|
||||||
|
|
||||||
|
# Disable access to SSH
|
||||||
|
deny ssh all
|
||||||
|
# Allow SSH connections originating from eth0
|
||||||
|
allow ssh eth0
|
||||||
|
|
||||||
|
|
||||||
Priority
|
Priority
|
||||||
--------
|
--------
|
||||||
|
|
||||||
The intent of finit is to monitor not just processes, but also to
|
The intent of finit is to monitor not just processes, but to supervise
|
||||||
be able to supervise the entire system and the behavior of certain
|
an entire system and the behavior of certain processes that declare
|
||||||
processes that declare themselves to be finit compliant.
|
themselves to be finit compliant.
|
||||||
|
|
||||||
* Integrate the ingenious libev to handle all events: signals, polling
|
* Integrate libev, or libuev, to handle events: signals, I/O, etc.
|
||||||
fd's, etc. Because "Event driven software improves concurrency" --
|
|
||||||
Dave Zarzycki, Apple.
|
"Event driven software improves concurrency" -- Dave Zarzycki, Apple
|
||||||
|
|
||||||
See the [launchd video](http://www.youtube.com/watch?v=cD_s6Fjdri8)
|
See the [launchd video](http://www.youtube.com/watch?v=cD_s6Fjdri8)
|
||||||
for more info!
|
for more info!
|
||||||
|
* Add support for a `/dev/watchdog` plugin to replace `watchdogd`
|
||||||
* Add support for a /dev/watchdog plugin to replace watchdogd
|
|
||||||
|
|
||||||
* Integrate watchdog plugin with process/system supervisor to optionally
|
* Integrate watchdog plugin with process/system supervisor to optionally
|
||||||
reboot the system when a process stops responding, or when a respawn
|
reboot the system when a process stops responding, or when a respawn
|
||||||
limit has been reached, as well as when system load gets too high.
|
limit has been reached, as well as when system load gets too high.
|
||||||
@@ -57,7 +67,6 @@ Configuration
|
|||||||
|
|
||||||
* Add support for `init <q | reload-configuration>` and `SIGHUP` to
|
* Add support for `init <q | reload-configuration>` and `SIGHUP` to
|
||||||
have finit reload its `finit.conf`, but also
|
have finit reload its `finit.conf`, but also
|
||||||
|
|
||||||
* Add support for inotify to automatically reload `finit.conf`
|
* Add support for inotify to automatically reload `finit.conf`
|
||||||
|
|
||||||
|
|
||||||
@@ -66,7 +75,6 @@ Runlevels
|
|||||||
|
|
||||||
* Implement `initctl stop|start|restart|reload|status <SVC>` and
|
* Implement `initctl stop|start|restart|reload|status <SVC>` and
|
||||||
`service <SVC> stop|start|restart|reload|status` on top
|
`service <SVC> stop|start|restart|reload|status` on top
|
||||||
|
|
||||||
* Add PRE and POST hooks for when switching between runlevels
|
* Add PRE and POST hooks for when switching between runlevels
|
||||||
|
|
||||||
|
|
||||||
@@ -87,7 +95,7 @@ Documentation
|
|||||||
* Write man pages for finit and `finit.conf`, steal from the excellent
|
* Write man pages for finit and `finit.conf`, steal from the excellent
|
||||||
`pimd` man pages ...
|
`pimd` man pages ...
|
||||||
* Update Debian `finit.conf` example with runlevels, `tty/console` and
|
* Update Debian `finit.conf` example with runlevels, `tty/console` and
|
||||||
dependency handling
|
dependency handling for Debian 8 (the dreaded systemd release).
|
||||||
|
|
||||||
|
|
||||||
Investigation
|
Investigation
|
||||||
|
|||||||
Reference in new issue
Block a user