Hi All I have a problem with initialization of asterisk using my rc.local file. when i call asterisk from the prompt it works well but don?t in the initialization... I have in my file that comands: touch /var/lock/subsys/local modprobe zaptel modprobe wcfxo safe_asterisk I read in somewere that it can be an interrup problem and i use the cat proc/interrupt to see what is happening Somebody can tell me if this is correct? The usb-ohci and usb-ohci drivers are to be sharing the same interrupt as the wcfxo? CPU0 0: 220155 XT-PIC timer 1: 4 XT-PIC keyboard 2: 0 XT-PIC cascade 5: 68 XT-PIC eth1 8: 1 XT-PIC rtc 9: 2167768 XT-PIC usb-ohci, usb-ohci, wcfxo 10: 7320 XT-PIC eth0 12: 22 XT-PIC PS/2 Mouse 14: 5092 XT-PIC ide0 NMI: 0 ERR: 0 Thanks for any help Miklos -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040123/9ece1fb3/attachment.htm
Hi listas iPfone wrote:> Hi All > > I have a problem with initialization of asterisk using my rc.local > file. when i call asterisk from the prompt it works well but don?t in > the initialization...If it works when called directly and it doesn't work called during startup. I would think, it is a problem with "path"-setting or with access rights. The init-scripts normaly have a relative short path. Maybee the executable is not found. Or Your setup starts * as a non-root user, but your manual startup uses root. What distribution do You use?> I have in my file that comands: > > touch /var/lock/subsys/local > modprobe zaptel > modprobe wcfxo > safe_asterisk > > I read in somewere that it can be an interrup problem and i use the > cat proc/interrupt to see what is happeningI think with an interrupt problem, any startup will fail, may it be manual or automatic during startup. HTH, Karsten
Ok! Thanks miklos ----- Original Message ----- From: "Karsten Wemheuer" <kwem@gmx.de> To: <asterisk-users@lists.digium.com> Sent: Saturday, January 24, 2004 9:42 AM Subject: Re: [Asterisk-Users] rc.local dont works> Hi Miklos, > > listas iPfone wrote: > > Hi ! thanks for the answer.. > > > > I use rh9... > > Sorry, I am familiar with Linux From Scratch, Debian and Gentoo but not > with RH. > > > > > > I think with an interrupt problem, any startup will fail, may it be > > > manual or automatic during startup. > > > > but.. you think that there is a problem in the interrupts at all? idon?t> > understand. > > Sorry, that was a little bit irritating from me. English is not my > mother tongue. I mean, if it is an interrupt problem, there would be no > difference in the results. So, I think it is NOT an interrupt problem. > > HTH & HAND > Karsten > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Hi Miklos, I have the same problem here in RH90 - have you found any solution? Or does anybody else know why (safe_)asterisk does not start using rc.local? (normally I start * as root user) Cheers Jeroen
Hi Jeroen1 I think that?s maybe a bug I really don?t found the problem in my logs, i?m starting it by hand :-( I update you if i can figure it out. regards Miklos ----- Original Message ----- From: "Jeroen" <linux@comresult.com> To: <asterisk-users@lists.digium.com> Sent: Monday, January 26, 2004 11:23 AM Subject: Re: [Asterisk-Users] rc.local dont works> Hi Miklos, > > I have the same problem here in RH90 - have you found any solution? > > Or does anybody else know why (safe_)asterisk does not start using > rc.local? (normally I start * as root user) > > Cheers > Jeroen > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Hi, Jeroen wrote:> Hi Miklos, > > I have the same problem here in RH90 - have you found any solution? > > Or does anybody else know why (safe_)asterisk does not start using > rc.local? (normally I start * as root user)If start fails using a non root user, please check the permissions of the directories and files, used by *. I am no RH specialist, so I might be wrong but I think, to startup *, it should be able to read /etc/asterisk and to read/write /var/log/asterisk/* and /var/run/asterisk/*. I think, You should check the entries in /etc/asterisk/asterisk.conf. Please be shure to use /var/run/asterisk/ as directory ASTVARRUN, and set the permissions of this directoy correct. If You set this directory to /var/run, this will fail, cause a non root user normaly have no write permission in this directory. HTH &HAND
I'm not sure if you're trying to accomplish something specifically by using rc.local, but I use RH9, and I used make config on both asterisk and zaptel and that created the correct init files for me. Starts up perfect every time! Sean -----Original Message----- From: listas iPfone [mailto:listas@ipfone.com.br] Sent: Monday, January 26, 2004 1:52 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] rc.local dont works Hi Jeroen1 I think that?s maybe a bug I really don?t found the problem in my logs, i?m starting it by hand :-( I update you if i can figure it out. regards Miklos ----- Original Message ----- From: "Jeroen" <linux@comresult.com> To: <asterisk-users@lists.digium.com> Sent: Monday, January 26, 2004 11:23 AM Subject: Re: [Asterisk-Users] rc.local dont works> Hi Miklos, > > I have the same problem here in RH90 - have you found any solution? > > Or does anybody else know why (safe_)asterisk does not start using > rc.local? (normally I start * as root user) > > Cheers > Jeroen > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users