Asterisk stoped loading at boot.

Ok so i have a asterisk server running on a ubuntu 6.06 box and i recently upgraded asterisk from the freepbx portal and asterisk no longer runs at boot up. When i run the asterisk command in a ssh session asterisk reports that it cant make the pid file in var/run/asterisk, this is due to the fact that somehow “i guess while shutting down” asterisk deletes this folder even when i make it. Once i have the folder made and chown asterisk:asterisk it and use the amportal script asterisk will start up fine, but after every reboot i have to remake the var/run/asterisk dir and use that amportal script. why is this happening??

Seems more like a FreePBX issue. You may want to look at their Forums.