Bug#480839: consider not starting asterisk on upgrade when no /etc/rc*/S*asterisk symlinks exists

Timo Juhani Lindfors timo.lindfors at iki.fi
Mon May 12 10:05:50 UTC 2008


Package: asterisk
Version: 1:1.2.13~dfsg-2etch2
Severity: wishlist

The postrm script

#!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -x "/etc/init.d/asterisk" ]; then
        update-rc.d asterisk defaults 21 >/dev/null
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d asterisk start || exit $?
        else
                /etc/init.d/asterisk start || exit $?
        fi
fi
# End automatically added section

seems to start asterisk on upgrade even if there are no "S" symlinks in /etc/rc*:

# ls -l /etc/*/*asterisk*
-rw-rw---- 1 asterisk asterisk 3260 2007-08-22 20:22 /etc/asterisk/asterisk.adsi
-rw-rw---- 1 asterisk asterisk  247 2007-08-22 20:20 /etc/asterisk/asterisk.conf
-rw-r--r-- 1 root     root      894 2007-09-20 08:34 /etc/default/asterisk
-rw-r--r-- 1 root     root      893 2007-09-19 23:02 /etc/default/asterisk~
-rwxr-xr-x 1 root     root     4405 2007-08-22 20:20 /etc/init.d/asterisk
-rw-r--r-- 1 root     root      293 2007-08-22 20:22 /etc/logrotate.d/asterisk
lrwxrwxrwx 1 root     root       18 2007-11-07 00:23 /etc/rc1.d/K10asterisk -> ../init.d/asterisk

It seems I can disable asterisk startup by editing
/etc/default/asterisk but this is non-trivial to do automatically
(yes, it can be done with some sed tricks of course).


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20gofrito
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages asterisk depends on:
ii  adduser             3.102                Add and remove users and groups
ii  asterisk-classic    1:1.2.13~dfsg-2etch2 Open Source Private Branch Exchang

asterisk recommends no packages.

-- no debconf information





More information about the Pkg-voip-maintainers mailing list