There's a service that pipes it's output to a named pipe, which I create with mkfifo name.
The service pauses if there's no reader in pipe. How to make it to keep piping the data even if there's no reader?
The reader(s) may (or may not) use the pipe later.
Edit: No buffer is needed. Readers will start reading from where they use the pipe. Data before that is lost. And that's OK. Consider it's a video stream.
mkfifo something, what command(s) should I use to handle this case? – james hofer Feb 24 '23 at 16:13tail -F namedpipemight be of interest to you in this case. See for example https://askubuntu.com/a/1416100 – Raffa Feb 24 '23 at 17:03tail -F my_pipeafter creating the pipe and it's working! But one question, does it consume high memory or any resource in scale? – james hofer Feb 24 '23 at 17:54/dev/nulland it should use very minimal resources AFAIK. – Raffa Feb 24 '23 at 18:30