Bug#786963: asterisk: running /etc/init.d/asterisk start after a crash, or after issuing a stop via asterisk console doesn't start asterisk
Simone Ricci
simone.ricci at gmail.com
Wed May 27 08:35:33 UTC 2015
Package: asterisk
Version: 1:11.13.1~dfsg-2+b1
Severity: important
Dear Maintainer,
trying to start asterisk via /etc/init.d/asterisk start, or by issuing a systemctl start asterisk fails (nothing happens) if machine is recovering from a crash, asterisk itself has crashed or stopped via its console. That's probably related to systemd seeing it running even if it's not.
How to reproduce:
* Start asterisk normally
* Stop it via its console (eg. asterisk -rx 'core stop now')
* Try to start it again, either via /etc/init.d/asterisk start or systemctl start asterisk
* Nothing Happens and systemctl reports the software as active, for example:
root at softswitch-02:~# systemctl status asterisk
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/init.d/asterisk)
Active: active (exited) since Thu 2015-05-14 00:42:53 CEST; 1 weeks 6 days ago
Process: 521 ExecStart=/etc/init.d/asterisk start (code=exited, status=0/SUCCESS)
* Notably, when asterisk is effectively running, the output is a bit dissimilar (systemd shows relevant processes):
root at softswitch-02:~# systemctl status asterisk
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/init.d/asterisk)
Active: active (running) since Wed 2015-05-27 10:31:52 CEST; 17s ago
Process: 5759 ExecStop=/etc/init.d/asterisk stop (code=exited, status=0/SUCCESS)
Process: 5769 ExecStart=/etc/init.d/asterisk start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/asterisk.service
├─5775 /usr/sbin/asterisk -p -U asterisk
└─5776 astcanary /var/run/asterisk/alt.asterisk.canary.tweet.tweet.tweet 5775
BR,
Simone.
-- System Information:
Debian Release: 8.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages asterisk depends on:
ii adduser 3.113+nmu3
ii asterisk-config 1:11.13.1~dfsg-2
ii asterisk-core-sounds-en [asterisk-prompt-en] 1.4.22-1
ii asterisk-core-sounds-en-gsm 1.4.22-1
ii asterisk-modules 1:11.13.1~dfsg-2+b1
ii libc6 2.19-18
ii libcap2 1:2.24-8
ii libedit2 3.1-20140620-2
ii libgcc1 1:4.9.2-10
ii libpopt0 1.16-10
ii libsqlite3-0 3.8.7.1-1
ii libssl1.0.0 1.0.1k-3
ii libstdc++6 4.9.2-10
ii libtinfo5 5.9+20140913-1+b1
ii libxml2 2.9.1+dfsg1-5
Versions of packages asterisk recommends:
ii asterisk-moh-opsound-gsm 2.03-1
ii asterisk-voicemail [asterisk-voicemail-storage] 1:11.13.1~dfsg-2+b1
ii sox 14.4.1-5
Versions of packages asterisk suggests:
pn asterisk-dahdi <none>
pn asterisk-dev <none>
pn asterisk-doc <none>
pn asterisk-ooh323 <none>
pn asterisk-vpb <none>
-- no debconf information
More information about the Pkg-voip-maintainers
mailing list