I followed the wiki instructions: http://www.voip-info.org/wiki-Asterisk+non-root Now I have a working asterisk running as user asterisk. I do however have some problems: 1: I dont have access via asterisk -r 2: The pid file is no longer being updated 3: I want to create a file in init.d so that I can use service start and stop, but need to be able to pass asterisk the gracefully command etc, any ideas welcome. maybe: "asterisk -rx stop gracefully" etc Regards Chris
On Thursday 05 February 2004 08:03, Chris Lee wrote:> I followed the wiki instructions: > http://www.voip-info.org/wiki-Asterisk+non-root > > Now I have a working asterisk running as user asterisk. > I do however have some problems: > 1: I dont have access via asterisk -rPermissions problem. User asterisk needs to have permissions to write the file /var/run/asterisk.ctl> 2: The pid file is no longer being updatedAgain, permissions problem.> 3: I want to create a file in init.d so that I can use service start > and stop, but need to be able to pass asterisk the gracefully command > etc, any ideas welcome. maybe: "asterisk -rx stop gracefully" etcPlease see the multitude of init.d scripts already written that do this in /usr/src/asterisk/contrib/init.d/ -Tilghman
Tilghman Lesher wrote:> > Permissions problem. User asterisk needs to have permissions to > write the file /var/run/asterisk.ctl > > >>2: The pid file is no longer being updated > > > Again, permissions problem. >I was under the impression that changing the line: ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run/asterisk fixed it so that asterisk.ctl and asterisk.pid got written in the /var/run/asterisk directory, which I gave asterisk ownership of. Am I mistaken here, and if so where do I configure the source so that they get put there, thus getting the rights they need?
On Thu, 2004-02-05 at 14:03, Chris Lee wrote:> I followed the wiki instructions: > http://www.voip-info.org/wiki-Asterisk+non-rootGlad someone's finding it useful :)> Now I have a working asterisk running as user asterisk. > I do however have some problems: > 1: I dont have access via asterisk -rroot should have access using asterisk -r (does for me anyway)> 2: The pid file is no longer being updatedIf this is an upgrade to a previous install, then check /etc/asterisk/asterisk.conf to see whether the change to ASTVARRUNDIR has taken effect in the config file...> 3: I want to create a file in init.d so that I can use service start and > stop, but need to be able to pass asterisk the gracefully command etc, > any ideas welcome. maybe: "asterisk -rx stop gracefully" etcpass F