hi, I'im using asterisk 4.1.21 and astrundir is configured as followed in /etc/asterisk/asterisk.conf : [global] astetcdir => /etc/asterisk astmoddir => /usr/lib/asterisk/modules astvarlibdir => /var/lib/asterisk astagidir => /usr/share/asterisk/agi-bin astspooldir => /var/spool/asterisk astrundir => /var/run/asterisk astlogdir => /var/log/asterisk when I start asterisk it creates his pid file and the ctl socket in /var/run and not in /var/run/asterisk How can I fix it ? Is it a known issue ? I did not get this error with asterisk 1.4.10 Thanks -- Cyril SCETBON
Are you using ubuntu? Usually I have to edit the Makefile in the else section of Global variable declaration based on architecture # ASTVARRUNDIR=$(localstatedir)/run ASTVARRUNDIR=$(localstatedir)/run/asterisk This seems to do it Cheers Duncan on 07/09/08 04:53 Cyril SCETBON said the following:> hi, > > I'im using asterisk 4.1.21 and astrundir is configured as followed in > /etc/asterisk/asterisk.conf : > > [global] > astetcdir => /etc/asterisk > astmoddir => /usr/lib/asterisk/modules > astvarlibdir => /var/lib/asterisk > astagidir => /usr/share/asterisk/agi-bin > astspooldir => /var/spool/asterisk > astrundir => /var/run/asterisk > astlogdir => /var/log/asterisk > > when I start asterisk it creates his pid file and the ctl socket in > /var/run and not in /var/run/asterisk > > How can I fix it ? Is it a known issue ? I did not get this error with > asterisk 1.4.10 > > Thanks >
On Tuesday 08 July 2008 11:53:47 Cyril SCETBON wrote:> hi, > > I'im using asterisk 4.1.21 and astrundir is configured as followed in > /etc/asterisk/asterisk.conf : > > [global] > astetcdir => /etc/asterisk > astmoddir => /usr/lib/asterisk/modules > astvarlibdir => /var/lib/asterisk > astagidir => /usr/share/asterisk/agi-bin > astspooldir => /var/spool/asterisk > astrundir => /var/run/asterisk > astlogdir => /var/log/asterisk > > when I start asterisk it creates his pid file and the ctl socket in > /var/run and not in /var/run/asterisk > > How can I fix it ? Is it a known issue ? I did not get this error with > asterisk 1.4.10Those settings should actually be in the [directories] context, not the [global] context. Change that, and it should work just fine. -- Tilghman