2 Feb
2023
2 Feb
'23
18:18
On 2023-02-02 19:04, Per Jessen wrote:
Per Jessen wrote:
Carlos E. R. wrote:
Wait, I don't know how to trace a program that is run this way: systemctl start mlocate.service
Well, don't do it that way, that is silly. Instead, you switch to user 'nobody' and then you run it:
Sorry, that was also silly - of course, you have to run the strace from within the service unit with $SUBJ enabled.
So you override the service unit, prepend 'strace' to the ExecStart, write output to a file etc etc. Likely it will produce too much output, so rinse & repeat.
It's an idea. -- Cheers / Saludos, Carlos E. R. (from Elesar, using openSUSE Leap 15.4)