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

16 lines
736 B
Bash
Raw Permalink Normal View History

#cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service
cp "$(dirname $0)/source/freeswitch.service.source" /etc/systemd/system/freeswitch.service
2017-07-06 18:46:19 +02:00
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
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
2017-07-29 21:49:51 +02:00
fi
systemctl enable freeswitch
systemctl unmask freeswitch.service
systemctl daemon-reload
2018-11-30 02:13:41 +01:00
systemctl start freeswitch