Re: A program that can get exactly the log of a supervised process?

2021-10-23 Thread Laurent Bercot
Any idea on how the log "teeing" may be done cleanly (and portably if possible; something akin to `tail -f' seems unsuitable because of potential log rotation), and perhaps any flaw or redundancy in the design above? The obstacle I have always bumped against when trying to do similar things is

Re: logging services with shell interaction

2021-10-23 Thread Casper Ti. Vector
On Sat, Oct 23, 2021 at 05:48:23PM +0200, Ben Franksen wrote: > Interesting, I didn't know you are from the accelerator community! (Actually I have only been in this field for 2.5 years...) > I agree. BTW, another detail is the special handling of certain control > characters by procServ: ^X to r

A program that can get exactly the log of a supervised process?

2021-10-23 Thread Casper Ti. Vector
Many daemons output some lines in their logs (here assumed to have been redirected to logging pipes in some supervision framework) that can be used as a kind of markers for readiness. So if we can implement the following program, we will able to trivially add readiness support to these daemons wit

Re: logging services with shell interaction

2021-10-23 Thread Ben Franksen
Hi Casper Am 20.10.21 um 20:01 schrieb Casper Ti. Vector: On Wed, Oct 20, 2021 at 09:53:58AM +0200, Ben Franksen wrote: Interesting, I didn't know about recordio, will take a look. Hello from a fellow sufferer from EPICS. (If you see a paper on some synchrotron-related journal in a few month