Hello, when I create a timer and it gets executed, I see the following in the /var/log/message:
--8<---------------cut here---------------start------------->8--- Jan 25 20:19:00 localhost shepherd[1]: Timer 'outerr-1' spawned process 32137. Jan 25 20:19:00 localhost shepherd[1]: [srhm85lyjpqid63i4xyl7ynmvc4c76xz-with-mail-out] a Jan 25 20:19:00 localhost shepherd[1]: [srhm85lyjpqid63i4xyl7ynmvc4c76xz-with-mail-out] b Jan 25 20:19:00 localhost shepherd[1]: Process 32137 of timer 'outerr-1' terminated with status 0 after 0 seconds. --8<---------------cut here---------------end--------------->8--- The timer services is created by few layers of procedures, so I do not really have a single definition to paste here, but that is not relevant. The timer works and gets executed, so that part is fine. What is unclear to me however is how can I tell (from the log) what timer produced what output. It tells me the PID of the timer process: --8<---------------cut here---------------start------------->8--- Jan 25 20:19:00 localhost shepherd[1]: Timer 'outerr-1' spawned process 32137. --8<---------------cut here---------------end--------------->8--- Which is great, but this line does not reference it in any way: --8<---------------cut here---------------start------------->8--- Jan 25 20:19:00 localhost shepherd[1]: [srhm85lyjpqid63i4xyl7ynmvc4c76xz-with-mail-out] a --8<---------------cut here---------------end--------------->8--- So I have two questions: 1. How to pair the timer output to the timer itself? 2. How to replace the (not really helpful) program name with a custom string (e.g. the timer name)? It would be much more readable if the log line looked like this: --8<---------------cut here---------------start------------->8--- Jan 25 20:19:00 localhost shepherd[1]: [outerr-1] a --8<---------------cut here---------------end--------------->8--- Thanks and have a nice day, Tomas -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.
signature.asc
Description: PGP signature