Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Submitted By: ledda (ledda)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: opensipsctl can't start proxy after crash
The way how opensipsctl was checking PID file doesn't allow to start OpenSIPS after crash or hard reboot.
This patch check if there is a process running with the PID specified in pid file. If not, it removes pid file and start opensips.
Also 'restart' feature was broken. It doesn't stop opensips - there was such comment in the code by it doesn't make sense to me.
So I've updated 'restart' command to do 'stop' and 'start'.