Bug#458022: asterisk: Initscript always reports that Asterisk is already running, hence never starts Asterisk

Debian BTS debbugs at rietz.debian.org
Fri Dec 28 00:27:03 UTC 2007

*** Please type your report below this line ***
Reply-To: Jason White <jason at jasonjgw.net>, 458022 at bugs.debian.org
Resent-From: Jason White <jason at jasonjgw.net>
Resent-To: debian-bugs-dist at lists.debian.org
Resent-CC: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
Resent-Date: Fri, 28 Dec 2007 00:27:01 +0000
Resent-Message-ID: <handler.458022.B.119880160012382 at bugs.debian.org>
Resent-Sender: owner at bugs.debian.org
X-Debian-PR-Message: report 458022
X-Debian-PR-Package: asterisk
X-Debian-PR-Keywords: patch
X-Debian-PR-Source: asterisk
Received: via spool by submit at bugs.debian.org id=B.119880160012382
          (code B ref -1); Fri, 28 Dec 2007 00:27:01 +0000
Received: (at submit) by bugs.debian.org; 28 Dec 2007 00:26:40 +0000
X-Spam-Checker-Version: SpamAssassin 3.1.4-bugs.debian.org_2005_01_02 
	(2006-07-26) on rietz.debian.org
X-Spam-Status: No, score=-2.5 required=4.0 tests=BAYES_00,FORGED_RCVD_HELO,
	autolearn=no version=3.1.4-bugs.debian.org_2005_01_02
Received: from ipmail05.adl2.internode.on.net ([])
	by rietz.debian.org with esmtp (Exim 4.63)
	(envelope-from <jason at jasonjgw.net>)
	id 1J833g-0003Ct-84
	for submit at bugs.debian.org; Fri, 28 Dec 2007 00:26:40 +0000
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Aq4HACvRc0c7p6NmWmdsb2JhbACBV4IrjAEBIJxH
X-IronPort-AV: E=Sophos;i="4.24,213,1196602200"; 
Received: from ppp59-167-163-102.lns1.mel4.internode.on.net (HELO jdc.jasonjgw.net) ([])
  by ipmail05.adl2.internode.on.net with ESMTP; 28 Dec 2007 10:56:34 +1030
Received: from jdc.jasonjgw.net (ip6-localhost [IPv6:::1])
	by jdc.jasonjgw.net (8.14.2/8.14.2/Debian-2) with ESMTP id lBS0QW37028900
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
	Fri, 28 Dec 2007 11:26:32 +1100
Received: (from jason at localhost)
	by jdc.jasonjgw.net (8.14.2/8.14.2/Submit) id lBS0QWKF028899;
	Fri, 28 Dec 2007 11:26:32 +1100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jason White <jason at jasonjgw.net>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Message-ID: <20071228002632.28840.73753.reportbug at jdc.jasonjgw.net>
X-Mailer: reportbug 3.39
Date: Fri, 28 Dec 2007 11:26:32 +1100
Delivered-To: submit at bugs.debian.org

Package: asterisk
Version: 1:
Severity: important
Tags: patch

/etc/init.d/asterisk fails to start, reporting that Asterisk is already
running even when this is not the case. Consequently, Asterisk cannot be
started from the initscript.

The error appears to be a typo in the initscript, fixed in the following

diff --git a/init.d/asterisk b/init.d/asterisk
index 84ed6d8..e69f7e5 100755
--- a/init.d/asterisk
+++ b/init.d/asterisk
@@ -123,7 +123,7 @@ then
 status() {
-	plist==`ps ax | awk "{ if (\\$5 == \"$DAEMON\") print \\$1 }"`
+	plist=`ps ax | awk "{ if (\\$5 == \"$DAEMON\") print \\$1 }"`
 	if [ "$plist" = "" ]; then
 		echo "$DESC is stopped"
 		return 1

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages asterisk depends on:
ii  adduser               3.105              add and remove users and groups
ii  asterisk-config       1:  Configuration files for Asterisk
ii  asterisk-sounds-main  1:  Core Sound files for Asterisk (Eng
ii  libasound2            1.0.15-3           ALSA library
ii  libc-client2006j2     7:2006j2.dfsg-3    UW c-client library for mail proto
ii  libc6                 2.7-5              GNU C Library: Shared libraries
ii  libcap1               1:1.10-14          support for getting/setting POSIX.
ii  libct3                0.63-3.2           libraries for connecting to MS SQL
ii  libcurl3              7.17.1-1           Multi-protocol file transfer libra
ii  libgcc1               1:4.2.2-4          GCC support library
ii  libgsm1               1.0.12-1           Shared libraries for GSM speech co
ii  libiksemel3           1.2-3              C library for the Jabber IM platfo
ii  libkrb53              1.6.dfsg.3~beta1-2 MIT Kerberos runtime libraries
ii  libncurses5           5.6+20071215-1     Shared libraries for terminal hand
ii  libnewt0.52           0.52.2-11.1        Not Erik's Windowing Toolkit - tex
ii  libogg0               1.1.3-3            Ogg Bitstream Library
ii  libpopt0              1.10-3             lib for parsing cmdline parameters
ii  libpq5                8.2.5-4            PostgreSQL C client library
ii  libpri1.0             1.4.2-1            Primary Rate ISDN specification li
ii  libradiusclient-ng2   0.5.5-1            Enhanced RADIUS client library
ii  libsnmp15             5.4.1~dfsg-4       SNMP (Simple Network Management Pr
ii  libspeex1             1.1.12-3           The Speex Speech Codec
ii  libsqlite0            2.8.17-4           SQLite shared library
ii  libssl0.9.8           0.9.8g-3           SSL shared libraries
ii  libstdc++6            4.2.2-4            The GNU Standard C++ Library v3
ii  libtonezone1          1:   tonezone library (runtime)
ii  libvorbis0a           1.2.0.dfsg-3       The Vorbis General Audio Compressi
ii  libvorbisenc2         1.2.0.dfsg-3       The Vorbis General Audio Compressi
ii  libvpb0               4.2.23-1           Voicetronix telephony hardware use
ii  unixodbc              2.2.11-16          ODBC tools libraries
ii  zlib1g                1:   compression library - runtime

asterisk recommends no packages.

-- no debconf information

More information about the Pkg-voip-maintainers mailing list