[Asterisk-Dev] [BUG] Asterisk -r removes main pid

Brancaleoni Matteo mbrancaleoni at espia.it
Sun Jun 22 03:54:33 MST 2003


Hi.
I've noticed that when connecting to a main asterisk
proc via asterisk -r (unix remote console), on exit
the pid file (/var/run/asterisk.pid) is removed ...
that's bad since the pid is used by the main 
asterisk, not by the unix console.
Also this could be a problem when using monitoring
tools like monit that relies on pid file for
checking if the proc is alive or not... as
the first time a unix console connection is made,
the pid is removed and the monitoring process restarts
asterisk...

Perhaps we can use a different pid file for asterisk -r ?

Matteo.




More information about the asterisk-dev mailing list