Package: asterisk Version: 1:1.4.21.2~dfsg-3 Severity: wishlist Tags: patch
Please create the log dirs, which asterisk requires for startup, from the init.d script. I am using /var/log on tmpfs (read-only box) and asterisk fails to start without this patch: --- /tmp/asterisk 2009-04-14 10:25:55.793566114 +0200 +++ /etc/init.d/asterisk 2009-04-14 10:27:33.000000000 +0200 @@ -162,6 +162,11 @@ exit 0 fi echo -n "Starting $DESC: " + + for dir in /var/log/asterisk /var/log/asterisk/cdr-csv /var/log/asterisk/cdr-custom; do + [ -d $dir ] || install -d -o asterisk -g asterisk $dir + done + if [ "$RUNASTSAFE" != "yes" ];then # TODO: what if we cought the wrapper just as its asterisk # was killed? status should check for the wrapper if we're in -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.29-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- .''`. martin f. krafft <madd...@d.o> Related projects: : :' : proud Debian developer http://debiansystem.info `. `'` http://people.debian.org/~madduck http://vcs-pkg.org `- Debian - when you have better things to do than fixing systems
digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)