Bug#445855: asterisk: doesn't start via init script
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Mon Oct 8 18:01:42 UTC 2007
On Mon, Oct 08, 2007 at 07:19:58PM +0200, Peter Mukunda Pasedach wrote:
> Hi,
>
> yes, thanks! Got it to work, see below:
>
>
> mukunda:/etc/asterisk# /etc/init.d/asterisk stop
> Stopping Asterisk PBX: asterisk.
> mukunda:/etc/asterisk# /etc/init.d/asterisk debug
> Debugging Asterisk PBX:
> Parsing /etc/asterisk/asterisk.conf
> Parsing /etc/asterisk/extconfig.conf
> == Parsing '/etc/asterisk/asterisk.conf': Found
> Set to realtime thread
> Running as user 'asterisk'
> == Parsing '/etc/asterisk/extconfig.conf': Found
> Asterisk 1.2.13, Copyright (C) 1999 - 2006 Digium, Inc. and others.
> Created by Mark Spencer <markster at digium.com>
> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for
> details.
> This is free software, with components licensed under the GNU General Public
> License version 2 and other licenses; you are welcome to redistribute it
> under
> certain conditions. Type 'show license' for details.
> =========================================================================
> == Parsing '/etc/asterisk/logger.conf': Parsing /etc/asterisk/logger.conf
> Found
> Logger Warning: Unable to open log file '/var/log/asterisk/messages':
> Permission denied
> Oct 8 19:09:59 ERROR[2131]: logger.c:631 init_logger: Unable to create
> event log: Permission denied
> mukunda:/etc/asterisk# ls -l /var/log/asterisk/
> total 654
> drwxr-xr-x 2 asterisk asterisk 1024 Oct 3 04:46 cdr-csv
> drwxr-xr-x 2 asterisk asterisk 1024 Oct 7 06:25 cdr-custom
> -rw-r--r-- 1 root root 63488 Oct 8 18:57 cdr.db
> -rw-r--r-- 1 root root 0 Oct 7 06:25 event_log
> -rw-r--r-- 1 root root 0 Oct 3 06:25 event_log.1
> -rw-r--r-- 1 root root 0 Oct 3 04:43 event_log.2
> -rw-r--r-- 1 root root 0 Oct 3 04:44 master.db
> -rw-r--r-- 1 root root 43383 Oct 8 19:09 messages
> -rw-r--r-- 1 root root 534376 Oct 8 10:43 messages.1
> -rw-r--r-- 1 root root 16809 Oct 3 06:42 messages.2
> -rw-r--r-- 1 root root 1330 Oct 8 18:53 queue_log
This has been caused by Asterisk running as root, because it was run by
a plain 'asterisk' rather than by the init.d script.
chown -R asterisk /var/log/asterisk
Maybe also in /var/run/asterisk and /var/spool/asterisk .
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the Pkg-voip-maintainers
mailing list