Asterisk 13 Systemd
hi,
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 https://reviewboard.asterisk.org/r/2730/
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)
http://www.gmludo.eu/
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.
[Unit]
Description=Asterisk PBX and telephony daemon. Requires=network-online.target After=network-online.target
[Service]
Type=forking PIDFile=/var/run/asterisk/asterisk.pid 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’
Nice=0
UMask=0002
LimitCORE=infinity LimitNOFILE=4096
Restart=always RestartSec=4
PrivateTmp=false
[Install]
WantedBy=multi-user.target
Speaking of those (that use the pending review for a systemd unit):
https://bugs.debian.org/801629