After reboot machine asterisk not start

i install asterisk in Alma 9 not start

Alma Linux 9 uses systemctl for managing services.

May I suggest that when you have an issue; and you want help fixing said “issue” you give background: How was it installed exact instructions, What OS / Prior to the install where you able to install all the dependencies: contrib/scripts/install_prereq / How was it configured: ./configure --libdir=/usr/lib64 --with-pjproject-bundled --with-jansson-bundled It’s hard to pinpoint one exact issue. Check logs : tail -f n20 /var/log/asterisk/messages User /Permission ?
What do you see in : journalctl -xeu asterisk.service …etc …etc


Where it is the comanda you order to do

Thi is your error
/etc/rc.d/init.d/functions: no such file or directory

Please avoid images and use formated text


Daniel

these file does not exist

You’re confusing about service systems.
After 2011 mayor distro have change to use SystemCTL, service files are all usually located in /lib/systemd/system…
Therefore you should put your asterisk service script on SystemCTL and control asterisk service through Systemctl commands.
I.E.
systemctl enables asterisk.service
systemctl start asterisk.service
So on.


As I reported in the first photo, the error is there, I just don’t know how to solve it.

Where is located your asterisk.service script?

Paste your asterisk.service script too.

You need to cd to your Asterisk source directory and enter:

make config

systemctl will then work with Asterisk.

systemctl status asterisk

systemctl restart asterisk

I put a request in Github to have this added to the install procedure 6 months ago. No action yet