Bug#379285: Incorrect location for asterisk.pid and asterisk.ctl
Package: asterisk Version: 1:1.2.7.1.dfsg-3 Severity: normal In the default configuration asterisk runs as an unprivileged user, but the binary tries to create and use /var/run/asterisk.pid and /var/run/asterisk.ctl and fails (without the .ctl the -r function will not work). There is a /var/run/asterisk directory presumably setup for this purpose but it's not trying to use it. The only fix currently is to run asterisk as root, which is not ideal. Tony -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-2-xen-k7 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages asterisk depends on: ii adduser 3.87 Add and remove users and groups ii asterisk-classic1:1.2.7.1.dfsg-3 Open Source Private Branch Exchang asterisk recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#379285: Incorrect location for asterisk.pid and asterisk.ctl
On Sat, Jul 22, 2006 at 04:41:55PM +0100, Tony Hoyle wrote: Package: asterisk Version: 1:1.2.7.1.dfsg-3 Severity: normal In the default configuration asterisk runs as an unprivileged user, but the binary tries to create and use /var/run/asterisk.pid and /var/run/asterisk.ctl and fails (without the .ctl the -r function will not work). There is a /var/run/asterisk directory presumably setup for this purpose but it's not trying to use it. The only fix currently is to run asterisk as root, which is not ideal. The directory for the pid file is set in /etc/asterisk/asterisk.conf , in the section [directories], value 'astrundir' What do you have there? -- Tzafrir Cohen sip:[EMAIL PROTECTED] icq#16849755 iax:[EMAIL PROTECTED] +972-50-7952406 jabber:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.xorcom.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#379285: Incorrect location for asterisk.pid and asterisk.ctl
Tzafrir Cohen wrote: The directory for the pid file is set in /etc/asterisk/asterisk.conf , in the section [directories], value 'astrundir' What do you have there? Ahh... never heard of that setting before. changing that worked.. thanks. /etc/init.d/asterisk still has: PIDFILE=/var/run/asterisk/asterisk.pid which needs changing manually (and perhaps should be in the default build) but it does seem to work as it is. I guess you can close this bug. Thanks for the help. Tony -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#379285: Incorrect location for asterisk.pid and asterisk.ctl
On Sat, Jul 22, 2006 at 07:23:34PM +0100, Tony Hoyle wrote: Tzafrir Cohen wrote: The directory for the pid file is set in /etc/asterisk/asterisk.conf , in the section [directories], value 'astrundir' What do you have there? Ahh... never heard of that setting before. changing that worked.. thanks. /etc/init.d/asterisk still has: PIDFILE=/var/run/asterisk/asterisk.pid which needs changing manually (and perhaps should be in the default build) but it does seem to work as it is. I guess you can close this bug. Thanks for the help. I believe you got thing wrong: The PID should not be in /var/run/asterisk.pid (if you want to be able to run asterisk as non-root). -- Tzafrir Cohen sip:[EMAIL PROTECTED] icq#16849755 iax:[EMAIL PROTECTED] +972-50-7952406 jabber:[EMAIL PROTECTED] [EMAIL PROTECTED] http://www.xorcom.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#379285: Incorrect location for asterisk.pid and asterisk.ctl
Tzafrir Cohen wrote: I believe you got thing wrong: The PID should not be in /var/run/asterisk.pid (if you want to be able to run asterisk as non-root). That's what I'm saying - the default /etc/init.d/asterisk has that path hardcoded in it, so that script needs changing. Tony -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]