I'm marching forward trying to get asterisk running on a amazon EC2
instance, Fedora 19.
If I start it from the terminal all works. I can login as user
"asterisk" and start asterisk.
But if I try to use systemctl to start it automatically I get the error
it doesn't have the permission to open asterisk.conf.
cat /usr/lib/systemd/system/asterisk.service
[Unit]
Description=Asterisk PBX and telephony daemon.
After=network.target
[Service]
Type=simple
Environment=HOME=/var/lib/asterisk
WorkingDirectory=/var/lib/asterisk
User=asterisk
Group=asterisk
ExecStart=/usr/sbin/asterisk -f -C /etc/asterisk/asterisk.conf
ExecStop=/usr/sbin/asterisk -rx 'core stop now'
ExecReload=/usr/sbin/asterisk -rx 'core reload'
and if I login as asterisk:
[asterisk@myip ~]$ /usr/sbin/asterisk -f -C /etc/asterisk/asterisk.conf
it works. I can login from another terminal.
But if I do systemctl start asterisk I get:
systemd[1]: Started Asterisk PBX and telephony daemon..
asterisk[711]: Unable to open specified master config file
'/etc/asterisk/asterisk.conf', using built-in defaults
ls -l /etc/asterisk/asterisk.conf
-rw-r--r--. 1 asterisk asterisk 3938 Sep 7 22:19
/etc/asterisk/asterisk.conf
Going nuts here.
sean
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users