Manages the file descriptors kept by the fdholder daemon of a scandir.
fdholder [ -h ] [ -o owner ] store|retrieve|list [<subcommand options>]
The fdholder (66-fdholderd) is a daemon supervised by the scandir. It holds open file descriptors on behalf of services so they survive a service restart, typically the read end of a logging fifo. This command handles the descriptors it stores. The daemon itself is started, stopped and restarted by the internal command.
This command expects an already running scandir for the relevant owner. It waits for the daemon to answer for the time given by the -T option of 66, without limit by default.
Store standard input under the name mylog, keeping it forever
66 fdholder store mylog
Store file descriptor 3 under the name mylog, expiring after one hour
66 fdholder store -d 3 -e 3600 mylog
Retrieve mylog on standard input and exec a logger, deleting the entry afterwards
66 fdholder retrieve -D mylog 66-log -- /var/log/mylog
List the stored descriptors of owner’s fdholder
66 fdholder -o owner list