From 0760aa85225b29a763e50b8d771595f2d87ba08e Mon Sep 17 00:00:00 2001 From: Len Date: Sat, 2 Sep 2017 11:07:22 -0400 Subject: [PATCH] Update source-systemd.sh (#115) correct freeswitch.pid path and freeswitch.service path https://github.com/fusionpbx/fusionpbx/issues/2812 --- debian/resources/switch/source-systemd.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/resources/switch/source-systemd.sh b/debian/resources/switch/source-systemd.sh index 8770a6a..9facfe7 100755 --- a/debian/resources/switch/source-systemd.sh +++ b/debian/resources/switch/source-systemd.sh @@ -1,9 +1,13 @@ -cp "$(dirname $0)/source/freeswitch.service.source" /lib/systemd/system/freeswitch.service +#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