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
Reducing Privileges of a Process on Unix or Gnu/Linux
Sending Data on Af_Packet Socket
How to Delay Pipe Netcat to Connect on First Input
Linux Select() and Fifo Ordering of Multiple Sockets
Why Does Cat <<< $Var1 Lose Newlines
Multi-Architectural Binary Rpm and The Noarch
How to Export Daily Disk Usage to CSV Format in Shell Scripting
Compare Two Files of Different Columns and Print Different Columns
Linux Sysfs Gpio: What Re-Arms Interrupt
How to Use Schell Script to Read Element from a File, Do Some Calculation and Write Back
"The Launch Timed Out and Was Terminated" Error with Bumblebee on Linux
Is There Some Ansible Equivalent to "Failed_When" for Success