aboutsummaryrefslogtreecommitdiffstats
path: root/config/vhosts/vhosts.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-02-18 10:43:54 -0500
committerjim-p <jimp@pfsense.org>2015-02-18 10:43:54 -0500
commit3daf4e6e5f777a77269f919ad9e37d062962c968 (patch)
treed85e25314dbfb6e19704fd0b7ef2273618673a9e /config/vhosts/vhosts.inc
parent59462aa2994cb7d43134ba96e07b5d2b42dfaebc (diff)
parent266662ff8334da5210ad64f08b050b1167386268 (diff)
downloadpfsense-packages-3daf4e6e5f777a77269f919ad9e37d062962c968.tar.gz
pfsense-packages-3daf4e6e5f777a77269f919ad9e37d062962c968.tar.bz2
pfsense-packages-3daf4e6e5f777a77269f919ad9e37d062962c968.zip
Merge pull request #824 from dariomas/master
Diffstat (limited to 'config/vhosts/vhosts.inc')
-rw-r--r--config/vhosts/vhosts.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/vhosts/vhosts.inc b/config/vhosts/vhosts.inc
index 2437c970..1958632e 100644
--- a/config/vhosts/vhosts.inc
+++ b/config/vhosts/vhosts.inc
@@ -681,11 +681,11 @@ function vhosts_sync_package_php()
);
//add or update a service
- $a_service = &$config['installedpackages']['service'];
$ent['name'] = "vhosts-ssl-$x";
$ent['rcfile'] = "vhosts-".$ipaddress."-".$port."-ssl.sh";
$ent['executable'] = "vhosts-".$ipaddress."-".$port."-ssl";
$ent['description'] = "vHosts SSL, Host: $host, IP Address: ".$ipaddress.", port: ".$port." desc: ".$description;
+ $ent['custom_php_service_status_command'] = "\$vhost_output=''; exec('/bin/pgrep -anf '.".escapeshellarg($ent['executable']).", \$vhost_output, \$retval); \$rc=(intval(\$retval) == 0);";
$a_service = $config['installedpackages']['service'];
$service_id = get_service_id ($a_service, 'name', "vhosts-ssl-$x");
if (is_int($service_id)) {