I've based the rc.d script on the odoo one. However I'm installing in a virtualenv.
From time to time the process crashes. However when doing /usr/local/etc/rc.d/odoo status it shows as running.
When I check the pid that is in /var/run there's no process with that pid.
I have set procname to the location of the python3.8 in the virtualenv now to also test that but I don't think that's the intention of this. If I understood correctly this is to prevent that it is detected as running while it's just another binary running than the intended one.
How does this pid get checked in order to verify that it's still running?
From time to time the process crashes. However when doing /usr/local/etc/rc.d/odoo status it shows as running.
When I check the pid that is in /var/run there's no process with that pid.
I have set procname to the location of the python3.8 in the virtualenv now to also test that but I don't think that's the intention of this. If I understood correctly this is to prevent that it is detected as running while it's just another binary running than the intended one.
How does this pid get checked in order to verify that it's still running?