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.