Asterisk, most recent from the port, doesn't start properly when /var/run/asterisk resides on TMPFS - this is in our environment the case.
While booting, I watch this message appearing:
Unable to chown run directory to 931 (asterisk)
and ll /var/run gives
drwxr-xr-x 2 root asterisk 0 Dec 16 16:26 asterisk/
The daemon asterisk is running, as one could easily proof via top, but trying to connect to asterisk via
root@gate:~ # asterisk -rv
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
fails in the shown error.
/usr/ports tree is: revision 456941
OS: 12.0-CURRENT FreeBSD 12.0-CURRENT #21 r327064: Thu Dec 21 18:50:24 CET 2017 amd64
*** This bug has been marked as a duplicate of bug 224505 ***