fusionpbx-install.sh/debian/resources/switch/source-systemd.sh

11 lines
472 B
Bash
Raw Normal View History

2016-08-16 20:14:03 +02:00
cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service
2017-07-06 18:46:19 +02:00
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
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
fi
systemctl enable freeswitch
systemctl unmask freeswitch.service
systemctl daemon-reload