Updated inetd syntax and add possible bug, needs investigating.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-01-29 12:33:35 +01:00
1 parent 46ddf4bcc6
commit 7f0a85c106
1 file changed
+4 -3
+4 -3
View File
@@ -29,7 +29,8 @@ General
* Move `finit.conf` "check" command to plugin which checks `/etc/fstab` * Move `finit.conf` "check" command to plugin which checks `/etc/fstab`
instead. This is the de-facto practice. But keep the check command instead. This is the de-facto practice. But keep the check command
for really low-end systems w/o `/etc/fstab`. for really low-end systems w/o `/etc/fstab`.
* Fix `restart_any_lost_procs()`, currently it restarts task/run when
called -- must check `SVC_CMD_SERVICE`, like `svc_monitor()` does.
Init Init
---- ----
@@ -45,12 +46,12 @@ Inetd
Simple way of running Internet services on demand, like the old inetd: Simple way of running Internet services on demand, like the old inetd:
inetd PROTO/SERVICE <wait|nowait> [@USER[:GROUP]] /path/to/daemon args inetd PORT/PROTO <wait|nowait> [@USER[:GROUP]] /path/to/daemon args -- desc
Examples: Examples:
# Inetd services, launched on demand # Inetd services, launched on demand
inetd tcp/ssh nowait [2345] @root:root /usr/sbin/sshd -i inetd ssh/tcp nowait [2345] @root:root /usr/sbin/sshd -i -- SSH daemon
In keeping with the finit tradition, an optional callback can be setup In keeping with the finit tradition, an optional callback can be setup
to each inetd service. When a client connects the finit will call the to each inetd service. When a client connects the finit will call the