[tahoe-lafs-trac-stream] [Tahoe-LAFS] #4159: Log a message when shutting down because STDIN is closed

Tahoe-LAFS trac at tahoe-lafs.org
Tue Jan 14 01:16:39 UTC 2025


#4159: Log a message when shutting down because STDIN is closed
-------------------------------+---------------------------
 Reporter:  hacklschorsch      |          Owner:
     Type:  defect             |         Status:  new
 Priority:  normal             |      Milestone:  undecided
Component:  code-frontend-cli  |        Version:  n/a
 Keywords:                     |  Launchpad Bug:
-------------------------------+---------------------------
 #3921 introduced a new behavior for tahoe run where the process will
 immediately exit when stdin is closed.

 #4036 introduced a way to still run tahoe even when we don't have a STDIN
 (for example when running under systemd).

 I was indeed trying to run tahoe under systemd and it took me over a day
 to find the `--allow-stdin-close` option (introduced with
 [[https://github.com/tahoe-lafs/tahoe-lafs/pull/1306|PR 1306]]).

 I propose we add logging to Tahoe-LAFS 'run' so that when it shuts down
 because STDIN is closed users can know this, something like:

 {{{
 STDIN (Standard Input) closed, shutting down.  Use `--allow-stdin-close`
 if you want to keep Tahoe-LAFS running when that happens.
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/4159>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list