[asterisk-users] Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory
Leif Madsen
leif.madsen at asteriskdocs.org
Thu Feb 11 06:36:23 CST 2010
Jason Parker wrote:
> Brian wrote:
>> Each time the server is rebooted Asterisk duly
>> deletes the manually created /var/run/asterisk directory - quite why it
>> does this I just don't know - perhaps it is a bug?
>
> Your assumption is incorrect. Some Linux distributions will empty /var/run/ on
> boot, just as they do with /tmp/. I do believe you're right, however, in
> suggesting that there is a bug in Asterisk. It appears that Asterisk creates
> /var/run/asterisk/ during install and assumes that it will always exist.
>
> Some of the sample init scripts (Debian) create that directory before starting
> Asterisk. This should be done in all of them (or in Asterisk itself, maybe?).
>
> Please report an issue on http://issues.asterisk.org/
For future reference, the issue reported is #16802.
https://issues.asterisk.org/view.php?id=16802
Leif
More information about the asterisk-users
mailing list