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

11 lines
472 B
Bash
Executable File

cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
if [ -e /proc/user_beancounters ]
then
#Disable CPU Scheduler for OpenVZ, not supported on OpenVZ."
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