Update package-systemd.sh

This commit is contained in:
FusionPBX 2017-07-29 13:53:17 -06:00 committed by GitHub
parent 0042437ad0
commit 722931e95e
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ cp "$(dirname $0)/source/etc.default.freeswitch.package" /etc/default/freeswitch
chmod 644 /lib/systemd/system/freeswitch.service
if [ -e /proc/user_beancounters ]
then
echo "Oh, your on OpenVZ! Setting a CPU Scheduler isn't possible :("
#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