asterisk failed to start under systemd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
asterisk (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Installed asterisk from repo on 15.04 x86_64: Version: 1:13.1.
When started automatically on boot it's failing - no binding to ports 5060 for unknown reason.
Curiously when started manually (as root of course) asterisk is working just fine. So I guess it's hairy and ugly /etc/init.
But in a meantime I'm looking for workaround to make this work.
systemctl status is 'degraded' after boot.
systemctl status asterisk
● asterisk.service - Asterisk PBX
Loaded: loaded (/lib/systemd/
Active: active (running) since Wed 2015-07-22 11:47:11 UTC; 1min 10s ago
Docs: man:asterisk(8)
Main PID: 1102 (asterisk)
CGroup: /lxc/asterisk/
└─1102 /usr/sbin/asterisk -g -f -U asterisk
Jul 22 11:47:11 asterisk systemd[1]: Started Asterisk PBX.
Jul 22 11:47:11 asterisk systemd[1]: Starting Asterisk PBX...
does not report anything suspicious.
journalctl -a -u asterisk
-- Logs begin at Wed 2015-07-22 11:45:04 UTC, end at Wed 2015-07-22 11:47:12 UTC. --
Jul 22 11:47:11 asterisk systemd[1]: Started Asterisk PBX.
Jul 22 11:47:11 asterisk systemd[1]: Starting Asterisk PBX...
as well as journalctl.
Yet, no port binding:
"ss -tapn | grep 5060" - gives nothing.
ps aux|grep asterisk
asterisk 1102 0.0 0.3 1496976 29660 ? Ssl 11:47 0:01 /usr/sbin/asterisk -g -f -U asterisk
Although asterisk is running.
tags: | added: systemd-boot |
Attached are the only 2 modified configuration files.