2017-09-02 17:07:22 +02: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 18:46:19 +02:00
|
|
|
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
|
2017-09-02 17:07:22 +02: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 21:49:51 +02:00
|
|
|
if [ -e /proc/user_beancounters ]
|
|
|
|
|
then
|
2017-07-29 21:53:46 +02:00
|
|
|
#Disable CPU Scheduler for OpenVZ, not supported on OpenVZ."
|
2017-07-29 21:49:51 +02:00
|
|
|
sed -i -e "s/CPUSchedulingPolicy=rr/;CPUSchedulingPolicy=rr/g" /lib/systemd/system/freeswitch.service
|
2017-09-02 17:07:22 +02:00
|
|
|
|
2017-07-29 21:49:51 +02:00
|
|
|
fi
|
2016-08-16 19:39:48 +02:00
|
|
|
systemctl enable freeswitch
|
|
|
|
|
systemctl unmask freeswitch.service
|
|
|
|
|
systemctl daemon-reload
|
2018-11-30 02:13:41 +01:00
|
|
|
systemctl start freeswitch
|