[asterisk-users] Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory

Jason Parker jparker at digium.com
Wed Feb 10 11:24:36 CST 2010


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/



More information about the asterisk-users mailing list