ArchLinux adopted systemd as its init system quite a while ago. Then earlier this year the Debian “committee” voted to adopt systemd as its default init system, with Ubuntu soon adopting the same. For me it was a little painful going from init to systemd since I, like so many others, was comfortable/familiar with init, which has served the Linux/Unix community well for many decades. There has been some sentiment of “if it aint broken don’t fix it”, but be that as it may, systemd is coming.
As I am testing Asterisk-12 and FreePBX-12 on ArchLinux, I continue to use start_asterisk and have disabled the systemd asterisk.service for now. Certainly the start_asterisk script works fine, but at some point the FreePBX development group may wish to investigate systemd. For reference, below is an example of a systemd asterisk.service script for starting/stopping/restarting asterisk. I just wanted to share this information for reference and am very excited about the great work in FreePBX-12.
[Unit]
Description=Asterisk PBX and telephony daemon
Documentation=man:asterisk(8)
Wants=network.target
After=network.target
[Service]
Type=simple
User=asterisk
Group=asterisk
ExecStart=/usr/bin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/bin/asterisk -rx ‘core stop now’
ExecReload=/usr/bin/asterisk -rx ‘core reload’
# safe_asterisk emulation
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target