epcim
11/7/2017 - 3:53 PM

strace debug

strace debug

# http://www.thegeekstuff.com/2011/11/strace-examples/

strace -f -o /tmp/strace.log -s 2048 -p 1 & systemctl restart postgresql.service

#Then, after a couple of seconds, fg into the strace process, cancel it, and then
#see it the strace.log helps.

strace -e trace=open,read ls /home

strace $(pidof apache2 | sed 's/\([0-9]*\)/\-p \1/g')