forked from norman/fusionpbx-install.sh-github-mirror
Start working on Ubuntu
This commit is contained in:
15
ubuntu/resources/switch/source-systemd.sh
Executable file
15
ubuntu/resources/switch/source-systemd.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service
|
||||
cp "$(dirname $0)/source/freeswitch.service.source" /etc/systemd/system/freeswitch.service
|
||||
cp "$(dirname $0)/source/etc.default.freeswitch.source" /etc/default/freeswitch
|
||||
sed "s@PIDFile=/run/freeswitch/freeswitch.pid@PIDFile=/usr/local/freeswitch/run/freeswitch.pid@g" -i /etc/systemd/system/freeswitch.service
|
||||
|
||||
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
|
||||
systemctl start freeswitch
|
||||
Reference in New Issue
Block a user