Problem With The DB() Function (Ira)
If you’re on the latest Fedora you’re probably using systemd for init and startup / control of background functions.
On CentOS7, to get Asterisk to start up with the system on boot I do the following as root:
# cd /etc/systemd/system
# vim asterisk.service
– In this file, then put
—
[Unit]
Description=Asterisk After=network.target After=network-online.target After=startup.service After=mysql.service Wants=mysql.service
[Service]
Type=idle User=root Group=root ExecStart=/usr/sbin/asterisk -f ExecStop=/usr/sbin/asterisk -rx ‘core stop now’
ExecReload=/usr/sbin/asterisk -rx ‘core reload’
TimeoutSec=300
LimitCORE=infinity LimitNOFILE=16384
Restart=always RestartSec=5
[Install]
WantedBy=multi-user.target
—
# systemctl enable asterisk.service
Now, on reboot, systemd should start up asterisk for you.
Hope this helps.
Stefan
—