Bug#801629: asterisk: when run with systemd, asterisk no longer defaults to realtime or allows it to be configured
James Bottomley
James.Bottomley at HansenPartnership.com
Mon Oct 12 19:12:51 UTC 2015
Package: asterisk
Version: 1:13.1.0~dfsg-1.1+b1
Severity: normal
Under systemv init, asterisk is spawned by /etc/init.d/asterisk, which
checks the /etc/default/asterisk file and spawns asterisk realtime
(with the -p flag) unless the default is altered to AST_REALTIME=no
However, with the change to systemd, the default is no longer to spawn
with the -p flags. Indeed, it's no longer configurable because the
whole lot is hard coded in the /etc/systemd/system/asterisk.service
as:
ExecStart=/usr/sbin/asterisk -g -f -U asterisk
Firstly, I think we need to put this back to the default of being
realtime unless requested not to, and secondly, I think we need to
respect the configuration options of /etc/default/asterisk.
Unfortunately, systemd is trying to phase these files out (by ignoring
them):
http://0pointer.de/blog/projects/on-etc-sysinit.html
But according to the blog, there is still a way of importing shell
script like configuration files via the EnvironmentFile option, or by
spawning an actual script that reads the file.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 4.2.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (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:13.1.0~dfsg-1.1
ii asterisk-core-sounds-en [asterisk-prompt-en] 1.4.22-1
ii asterisk-modules 1:13.1.0~dfsg-1.1+b1
ii asterisk-sounds-main [asterisk-prompt-en] 1:1.6.2.9-2+squeeze10
ii init-system-helpers 1.23
ii libc6 2.19-22
ii libcap2 1:2.24-12
ii libedit2 3.1-20150325-1
ii libgcc1 1:5.2.1-21
ii libjansson4 2.7-3
ii libpopt0 1.16-10
ii libsqlite3-0 3.8.11.1-1
ii libssl1.0.0 1.0.2d-1
ii libstdc++6 5.2.1-21
ii libtinfo5 6.0+20150810-1
ii libuuid1 2.27-3
ii libxml2 2.9.2+zdfsg1-4
ii libxslt1.1 1.1.28-2+b2
Versions of packages asterisk recommends:
ii asterisk-moh-opsound-gsm 2.03-1
ii asterisk-voicemail [asterisk-voicemail-storage] 1:13.1.0~dfsg-1.1+b1
ii sox 14.4.1-5
Versions of packages asterisk suggests:
pn asterisk-dahdi <none>
ii asterisk-dev 1:13.1.0~dfsg-1.1
ii asterisk-doc 1:13.1.0~dfsg-1.1
ii asterisk-ooh323 1:13.1.0~dfsg-1.1+b1
pn asterisk-vpb <none>
-- no debconf information
More information about the Pkg-voip-maintainers
mailing list