LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-03-2016, 02:47 AM   #1
aagaag
Member
 
Registered: Aug 2014
Posts: 42

Rep: Reputation: Disabled
arch linux: start asterisk as root at boot


I have asterisk running on an arch linux virtual machine. Starting asterisk manually as root make it work fine:
Code:
$ ps aux | grep asterisk
avahi      297  0.0  0.0  41328  2996 ?        Ss   08:16   0:00 avahi-daemon: running [asterisk.local]
root       677 12.5  1.2 1349380 50152 ?       Ssl  08:40   0:02 asterisk
aag        757  0.0  0.0  10776  2144 pts/0    S+   08:40   0:00 grep asterisk
I then tried to start it automatically using:
Code:
sudo systemctl enable asterisk
The result is:
Code:
$ ps aux | grep asterisk
avahi      297  0.0  0.0  41328  2996 ?        Ss   08:16   0:00 avahi-daemon: running [asterisk.local]
asterisk   304  1.2  1.2 1352012 51260 ?       Ssl  08:16   0:14 /usr/bin/asterisk -f -C /etc/asterisk/asterisk.conf
aag        654  0.0  0.0  10776  2288 pts/0    S+   08:36   0:00 grep asterisk
In the second case, Asterisk seems to be denied access to its own SQlite database, implying that it runs as non-root. Is that correct? If so, which is the correct method to start asterisk as root automatically at boot? Many thanks and apologies for the na´vety of my question.
 
Old 07-04-2016, 11:08 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
I'd say you better give it proper access to the database instead of running as root.
 
  


Reply

Tags
arch linux, asterisk, boot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
start gui in arch linux sniper8752 Linux - Newbie 1 02-02-2013 02:41 PM
Start a script at boot of Linux (root permissions) Xeratul Debian 1 08-17-2011 06:55 PM
FreeSWITCH/Asterisk Start/Stop Daemon Only Owned By root GraysonPeddie Linux - Software 2 07-10-2010 09:12 PM
Start program at boot as non-root ImpactDNI Linux - Newbie 4 07-18-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration