Asterisk 13 Systemd

Home » Asterisk Users » Asterisk 13 Systemd
Asterisk Users 3 Comments


is there somebody using systemd start script on fedora/CentOS7 +
asterisk 13 in production?
i have strange problem with high cpu usage when asterisk is started via systemd

thanks for feedback

p.s. systemd script is not in vanilla asterisk. only in fedora package info

3 thoughts on - Asterisk 13 Systemd

  • I’ve some Asterisk 13 on production, it’s a custom compilation + I’ve retrieved systemd configuration file from asterisk Debian package of unstable.

    After a small adaptation, I’ve no issue like you, however, I use Debian Jessie.

    Ludovic Gasc (GMLudo)

  • I deploy on Fedora exclusively (not using the Fedora packages) and this is the service file I use. It’s different from the packaged version.

    Description=Asterisk PBX and telephony daemon.

    Type=forking PIDFile=/var/run/asterisk/ EnvironmentFile=-/etc/asterisk/asterisk.env WorkingDirectory=/var/lib/asterisk ExecStart=/usr/sbin/asterisk -U asterisk -G asterisk -C
    /etc/asterisk/asterisk.conf ${PROG_ARGS}
    KillMode=process TimeoutStopSec=5
    ExecStop=/usr/sbin/asterisk -rx ‘core stop now’
    ExecReload=/usr/sbin/asterisk -rx ‘core reload’

    LimitCORE=infinity LimitNOFILE=4096
    Restart=always RestartSec=4