2 Feb
2023
2 Feb
'23
18:04
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. -- Per Jessen, Zürich (9.2°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes