Can not connect to asterisk

Hi,
On a Freepbx 10.13.66-12 and asterisk 13.9.1 system ,after rebooting i get ‘can not connect to asterisk’.
After starting asterisk manual ‘fwconsole start’ its working fine.
Is there a way to auto start asterisk on reboot without the need to do it manualy ?

Try to put the command in rc.local.

I have two rc.local.
One at /etc

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
# Make sure asterisk starts on boot
/usr/sbin/fwconsole start

and the other at /etc/rc.d

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
# Make sure asterisk starts on boot
/usr/local/sbin/amportal start

So it seems command is there , but its not executed.

Issue solved.
in /etc/rc.d i replaced ‘/usr/local/sbin/amportal start’ with '/usr/sbin/fwconsole start’
and everything is working fine,
Thank you