[asterisk-users] Running asterisk as non root user
Hi, I've followed instructions of the book AsteriskFutureOf TelephonySecEdit on page 295 onwards ) Link to the Asterisk book: http://downloads.oreilly.com/books/9780596510480.pdf) and get an error when running service asterisk start. The error is: cat: /var/run/asterisk.pid: No such file or directory . I can run aserisk fine from the non-root user. Please help Code Snippet: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: [EMAIL PROTECTED] run]# /etc/init.d/asterisk restartShutting down asterisk: [FAILED]Starting asterisk: [ OK [EMAIL PROTECTED] run]# Asterisk ended with exit status 1Asterisk died with code 1.cat: /var/run/asterisk.pid: No such file or directoryAutomatically restarting Asterisk.mpg123: no process killedAsterisk ended with exit status 1Asterisk died with code 1.cat: /var/run/asterisk.pid: No such file or directoryAutomatically restarting Asterisk. The suggestion to do the following didn't work...: Edit the [directories] section of asterisk.conf and change the line that reads astrundir = /var/run TO: astrundir = /var/run/asterisk Then: mkdir /var/run/asterisk chown theuser /var/run/asterisk Edit /etc/init.d/asterisk And make sure there are no references to /var/run/asterisk.pid you want /var/run/asterisk/asterisk.pid instead Any help most welcome___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Running asterisk as non root user
Shaun Wingrin wrote: Hi, I've followed instructions of the book AsteriskFutureOf TelephonySecEdit on page 295 onwards ) Link to the Asterisk book: http://downloads.oreilly.com/books/9780596510480.pdf) and http://downloads.oreilly.com/books/9780596510480.pdf) and get an error when running service asterisk start. The error is: cat: /var/run/asterisk.pid: No such file or directory . snip / That sounds like it's probably a permissions thing. I wrote up a howto Asterisk as non-root on my blog here: http://www.theopensourcerer.com/2007/10/30/untangle-asterisk-pbx-and-file-server-all-in-one-part-7/ Make sure you check the init script and the permissions of the various directories that asterisk needs read/write too. HTH Alan -- The way out is open! http://www.theopensourcerer.com ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Running asterisk as non root user
Check this one out... http://www.voip-info.org/wiki/view/Asterisk+non-root From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaun Wingrin Sent: Sunday, 17 August 2008 6:51 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] Running asterisk as non root user Hi, I've followed instructions of the book AsteriskFutureOf TelephonySecEdit on page 295 onwards ) Link to the Asterisk book: http://downloads.oreilly.com/books/9780596510480.pdf) and get an error when running service asterisk start. The error is: cat: /var/run/asterisk.pid: No such file or directory . I can run aserisk fine from the non-root user. Please help Code Snippet: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: [EMAIL PROTECTED] run]# /etc/init.d/asterisk restart Shutting down asterisk: [FAILED] Starting asterisk: [ OK ] [EMAIL PROTECTED] run]# Asterisk ended with exit status 1 Asterisk died with code 1. cat: /var/run/asterisk.pid: No such file or directory Automatically restarting Asterisk. mpg123: no process killed Asterisk ended with exit status 1 Asterisk died with code 1. cat: /var/run/asterisk.pid: No such file or directory Automatically restarting Asterisk. The suggestion to do the following didn't work...: Edit the [directories] section of asterisk.conf and change the line that reads astrundir = /var/run TO: astrundir = /var/run/asterisk Then: mkdir /var/run/asterisk chown theuser /var/run/asterisk Edit /etc/init.d/asterisk And make sure there are no references to /var/run/asterisk.pid you want /var/run/asterisk/asterisk.pid instead Any help most welcome ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users