Bug#300707: /etc/init.d/asterisk broken only with RUNASTSAFE enabled
James Samuel
James Samuel <jsamuel@acid.ph>, 300707@bugs.debian.org
Mon, 21 Mar 2005 09:45:38 +0000
Package: asterisk
Version: 1:1.0.7.dfsg.1-1
Severity: normal
Hi,
Since recently upgrading asterisk and turning on RUNASTSAFE in the
defaults file, asterisk doesn't shut down cleanly. I believe this to be
caused by $WRAPPER_DAEMON not being defined either in the init.d file or
the defaults file. The error I get is as follows:
# /etc/init.d/asterisk stop
Stopping Asterisk PBX: asteriskstart-stop-daemon: option `--exec'
requires an argument
Try `start-stop-daemon --help' for more information.
If RUNASTSAFE is turned off, this error goes away. The affected code is
on line 83 of the init.d file:
start-stop-daemon --quiet --oknodo --stop --exec $WRAPPER_DAEMON
I'd hazard a guess that $WRAPPER_DAEMON should be set to
/usr/sbin/safe_asterisk - either that or the call should be to $DAEMON,
which is set correctly if RUNASTSAFE is enabled.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-ck2s
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages asterisk depends on:
ii asterisk-config 1:1.0.7.dfsg.1-1 config files for asterisk
ii asterisk-sounds-main 1:1.0.7.dfsg.1-1 sound files for asterisk
ii libasound2 1.0.8-3 ALSA library
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libgsm1 1.0.10-13 Shared libraries for GSM speech co
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii libnewt0.51 0.51.6-21 Not Erik's Windowing Toolkit - tex
ii libpq3 7.4.7-3 PostgreSQL C client library
ii libpri1 1.0.6-1 Primary Rate ISDN specification li
ii libspeex1 1.1.6-2 The Speex Speech Codec
ii libsqlite0 2.8.16-1 SQLite shared library
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii libtonezone1 1:1.0.7-1 tonezone library (runtime)
ii unixodbc 2.2.4-11 ODBC tools libraries
ii zlib1g 1:1.2.2-4 compression library - runtime
-- no debconf information