Explorar o código

Update finish.sh

FusionPBX %!s(int64=8) %!d(string=hai) anos
pai
achega
4bd0b4e005
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      freebsd/resources/finish.sh

+ 7 - 2
freebsd/resources/finish.sh

@@ -110,8 +110,13 @@ if [ .$switch_enabled = .'true' ]; then
 	sed -i' ' -e s:"{v_user}:$xml_cdr_username:" $conf_dir/autoload_configs/xml_cdr.conf.xml
 	sed -i' ' -e s:"{v_pass}:$xml_cdr_password:" $conf_dir/autoload_configs/xml_cdr.conf.xml
 
-	#restart freeswitch
-	service freeswitch restart
+	#stop freeswitch
+	service freeswitch stop
+	sleep 2
+	
+	#start freeswitch
+	service freeswitch start
+	sleep 3
 fi
 
 #welcome message