forked from norman/fusionpbx-install.sh-github-mirror
Update source-systemd.sh
This commit is contained in:
2
debian/resources/switch/source-systemd.sh
vendored
2
debian/resources/switch/source-systemd.sh
vendored
@@ -2,7 +2,7 @@ cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswit
|
|||||||
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
|
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
|
||||||
if [ -e /proc/user_beancounters ]
|
if [ -e /proc/user_beancounters ]
|
||||||
then
|
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
|
sed -i -e "s/CPUSchedulingPolicy=rr/;CPUSchedulingPolicy=rr/g" /lib/systemd/system/freeswitch.service
|
||||||
fi
|
fi
|
||||||
systemctl enable freeswitch
|
systemctl enable freeswitch
|
||||||
|
|||||||
Reference in New Issue
Block a user