Inconsistent Systemd Startup of Freeswitch

Inconsistent systemd startup of freeswitch

In the current master branch, take the two files from debian/ directory:

freeswitch-systemd.freeswitch.service -- should go as /lib/systemd/system/freeswitch.service

freeswitch-systemd.freeswitch.tmpfile -- should go as/usr/lib/tmpfiles.d/freeswitch.conf

You probably need to adapt the paths, or build FreeSWITCH to use standard Debian paths.

Freeswitch pauses on check_ip at boot on centos 7.1

Thanks to the FS userlist and ultimately Anthony Minessale, the issue was to do with RNG entropy.

This is a good explanation -
https://www.digitalocean.com/community/tutorials/how-to-setup-additional-entropy-for-cloud-servers-using-haveged

Here are some extracts :

There are two general random devices on Linux: /dev/random and
/dev/urandom. The best randomness comes from /dev/random, since it's a
blocking device, and will wait until sufficient entropy is available
to continue providing output.

The key here is that it's a blocking device, so any program waiting for a random number from /dev/random will pause until sufficient entropy is available for a "safe" random number.

This is a headless server, so the usual sources of entropy such as mouse/keyboard activity (and many others) do not apply. Thus the delays,

The fix is this :

Based on the HAVEGE principle, and previously based on its associated
library, haveged allows generating randomness based on variations in
code execution time on a processor......(google the rest!)

Install like this :

yum install haveged

and start it up like this :

haveged -w 1024

making sure it restarts on reboot :

chkconfig haveged on

Hope this helps someone.



Related Topics



Leave a reply



Submit