Killing running processes

There are also a few tricks that allow us to inspect a running Odoo process.

For that, we first need to find the corresponding process ID (PID). To find the PID, run another Terminal window and type:

$ ps ax | grep odoo-bin

The first column in the output is the PID for that process. Take a note of the PID for the process to inspect, since we will need it next.

Now, we want to send a signal to the process. The command used to do that is kill. By default, it sends a signal to terminate a process, but it can also send other friendlier signals.

Knowing the PID for our running Odoo server process, we can print the traces of the code currently being executed using:

$ kill -3 <PID>

If we look at the Terminal window or log ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.