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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Wed Feb 10 18:20:30 CST 2010


On Thu, Feb 11, 2010 at 08:45:05AM +1300, Duncan Turnbull wrote:
> The other way on Debian/Ubuntu is just to test the existence of the dir and create it if needed
> 
> If you add this to the /etc/init.d/asterisk near the start you should be fine
> 
> if ! [ -d /var/run/asterisk ] ; then
>         mkdir /var/run/asterisk
>         chown $AST_USER.$AST_GROUP /var/run/asterisk

Please use ':' as a separator for chown.

chown $user: file   # (empty group) chowns the file to the default group
of the uiser, which means that it's safe to leave AST_GROUP set to an
empty value.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list