Have you tried to turn of Selinux permanently?
I don't see why it would be required on a system that has no users.
In /etc/selinux/config I set SELINUX to disabled

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

This will make sure that you start up without Selinux.

This may partition your problem so that you know where to focus.

I use systemd for everything.
All of my servers are running some version of CentOS 7

Ron

On 15/03/2017 12:40 PM, Dan Cropp wrote:

Thanks Jason.

I will try to explain what I’m seeing for this issue.

I did a fresh install of CentOS 7 Minimal into a VM with VMWare Workstation. Followed the Asterisk from Source instructions using pjproject 2.6 and asterisk 13.14.0 for the configure, install, … At the end of the asterisk portion, I ran the make config which I understand installs the Initialization scripts.

After this, when I restart my CentOS 7 Minimal, I was seeing the safe_asterisk process, but asterisk would not start. I could run it from the command line and it would run.

It was suggested that it’s an selinux problem. They had me try ‘setenforce 0’. After this, asterisk process starts running.

As I understand it, there was mention of using systemd instead of using safe_asterisk.

Other e-mails indicated I should look at the audit.log, so I included that information. This audit.log mentioned astdb.sqlite3, so I wasn’t sure if that’s the problem.

I also just tried a restart and ran ‘systemctl start asterisk’. This did not start the asterisk process.

Through the various recommendations, I’ve become confused on what the correct path would be. I have had zero problems with Debian and Asterisk for many years. Making the change to CentOS. Followed the instructions from asterisk.org, but for some reason I hit a problem with this on my CentOS VM.

https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source

Simply looking for guidance on what the correct approach to solve this problem is.

Have a great day!

Dan

*From:*[email protected] [mailto:[email protected]] *On Behalf Of *Telium Technical Support
*Sent:* Wednesday, March 15, 2017 11:08 AM
*To:* 'Asterisk Users Mailing List - Non-Commercial Discussion'
*Subject:* Re: [asterisk-users] Having problem getting Asterisk to work on CentOS 7

The history of the question is lost (in the mail thread) so I’ll jump in based on what I could see in my recent mail and the subject line:

-The ASTDB should have no impact on Asterisk service start (which I assume is the problem given the subject line)

-If you disabled SElinux then that’s not the problem in starting asterisk

From another posting it appears that you can start Asterisk from the binary, and from safe_asterisk. If that’s correct, then are you able to start/stop Asterisk from the service file? With CentOS7 that would be:

systemctl start asterisk

Is your asterisk service file present? (You can create one easily based on samples on the internet). If you have an asterisk service file but startup fails post the relevant portion of your syslog (journalctl).

If your question has changed (you mentioned ‘the first problem’) then ignore the above; jumping in late.

**Jason**




--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to