aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-04-30 15:51:52 -0600
committermcrane <mctch@yahoo.com>2009-04-30 15:51:52 -0600
commit78ac4797c39e9dc7e9c121cc89cdfd40c8a139e8 (patch)
tree5cf5926e131359fbb7490b40799847b114556d4d /config
parent7d9f813cf6164487e7668efc6e3db89aabb9e771 (diff)
downloadpfsense-packages-78ac4797c39e9dc7e9c121cc89cdfd40c8a139e8.tar.gz
pfsense-packages-78ac4797c39e9dc7e9c121cc89cdfd40c8a139e8.tar.bz2
pfsense-packages-78ac4797c39e9dc7e9c121cc89cdfd40c8a139e8.zip
FreeSWITCH status if FreeSWITCH is not running then it starts add a sleep to delay processing until it has time to load.
Diffstat (limited to 'config')
-rw-r--r--config/freeswitch/freeswitch_status.tmp2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/freeswitch/freeswitch_status.tmp b/config/freeswitch/freeswitch_status.tmp
index d64a8980..dbe1c9cb 100644
--- a/config/freeswitch/freeswitch_status.tmp
+++ b/config/freeswitch/freeswitch_status.tmp
@@ -102,6 +102,8 @@ $savemsg = $_GET["savemsg"];
if (!pkg_is_service_running('freeswitch')) {
$handle = popen("/usr/local/etc/rc.d/freeswitch.sh start", "r");
pclose($handle);
+ //give freeswitch time to load before processing the rest of the page.
+ sleep(7);
}
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">