2017-09-02 11:07:22 -04:00
|
|
|
#cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service
|
|
|
|
|
cp "$(dirname $0)/source/freeswitch.service.source" /etc/systemd/system/freeswitch.service
|
2017-07-06 10:46:19 -06:00
|
|
|
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
|
2017-09-02 11:07:22 -04:00
|
|
|
sed "s@PIDFile=/run/freeswitch/freeswitch.pid@PIDFile=/usr/local/freeswitch/run/freeswitch.pid@g" -i /etc/systemd/system/freeswitch.service
|
|
|
|
|
|
2017-07-29 12:49:51 -07:00
|
|
|
if [ -e /proc/user_beancounters ]
|
|
|
|
|
then
|
2017-07-29 13:53:46 -06:00
|
|
|
#Disable CPU Scheduler for OpenVZ, not supported on OpenVZ."
|
2017-07-29 12:49:51 -07:00
|
|
|
sed -i -e "s/CPUSchedulingPolicy=rr/;CPUSchedulingPolicy=rr/g" /lib/systemd/system/freeswitch.service
|
2017-09-02 11:07:22 -04:00
|
|
|
|
2017-07-29 12:49:51 -07:00
|
|
|
fi
|
2016-08-16 11:39:48 -06:00
|
|
|
systemctl enable freeswitch
|
|
|
|
|
systemctl unmask freeswitch.service
|
|
|
|
|
systemctl daemon-reload
|
2018-11-29 18:13:41 -07:00
|
|
|
systemctl start freeswitch
|