NAME
enbd-sstatd − ENBD server state daemon
SYNOPSIS
enbd-sstatd
DESCRIPTION
The enbd-sstatd is a daemon that runs out of inetd(8) and helps maintain the local enbd-server(8) daemon databases. It understands a limited repertoire of commands on stdin and is used by a remote enbd-client(8) when it needs to notify a local enbd-server of the client shutdown.
The details of the server port configuration must be set in /etc/enbd.conf (see enbd.conf(5)).
PROTOCOL
The daemon understands the following commands on stdin, each terminated by a newline. The number of spaces is not important.
quit terminates the command sequence.
help [subject] lists the commands available.
notice client-stop <port> <ipaddr> [ipaddr ...] is the message sent by the remote enbd-client(8) when it wants to shut down. The addresses given are those of the client machines interfaces. The client tries to suppress those addresses which cannot be routed to the server (such as 127.*.*.*, when the server is not also the client), but there is a possibility of address collision.
NOTES
Add the following line to /etc/services (see services(5)):
enbd-sstatd 5052/tcp # NBD statd (server side)
and the following line to /etc/inetd.conf (see inetd.conf(5)) enbd-sstatd stream tcp nowait root /usr/sbin/enbd-sstatd enbd-sstatd
adjusting both to match local requirements.
FILES
The daemon looks in /etc/enbd.conf for the identifier ID of the enbd-server(8) that should be running on the port that the enbd-client reported. It looks in /var/state/nbd/server-ID.client_ips for the IP addresses passed by the client and elminates them from that file if present. The file contains the addresses to be contacted by the enbd-server to inform them of a server reboot.
SEE ALSO
enbd-client(8), enbd-server(8), enbd.conf(5), enbd-sstatd(8).
AUTHORS
Peter Breuer wrote the enbd-sstatd for enbd-2.4.25.