[PATCH 05/12] hs20-spp-html: apache + systemd hides the log file.

greearb at candelatech.com greearb at candelatech.com
Thu Mar 26 17:39:51 EDT 2015


From: Ben Greear <greearb at candelatech.com>

Add note so that the user has a chance to find it more easily.

Signed-off-by: Ben Greear <greearb at candelatech.com>
---
 hs20/server/www/spp.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hs20/server/www/spp.php b/hs20/server/www/spp.php
index dde4434..acb4c78 100644
--- a/hs20/server/www/spp.php
+++ b/hs20/server/www/spp.php
@@ -100,6 +100,9 @@ putenv("HS20POST=$HTTP_RAW_POST_DATA");
 $addr = $_SERVER["REMOTE_ADDR"];
 putenv("HS20ADDR=$addr");
 
+// Note that systemd + apache may run under chroot, and so your log file will
+// be in some hard-to-find place like:
+// /tmp/systemd-httpd.service-XqgPdBa/tmp/hs20_spp_server.log
 $last = exec("$osu_root/spp/hs20_spp_server -r$osu_root -f/tmp/hs20_spp_server.log", $output, $ret);
 
 if ($ret == 2) {
-- 
1.9.3



More information about the HostAP mailing list