Project

General

Profile

Bug #1278

log when captive portal restarts

Added by Thomas NOEL over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Captive Portal
Target version:
Start date:
02/11/2011
Due date:
% Done:

30%

Estimated time:
0.10 h
Affected Version:
2.0
Affected Architecture:
All

Description

Hi,

When captive portal is reconfigured, it restarts and disconnects all clients. We have a message on the service/captiveportal page. I think we could log some information too. Here is a patch against /etc/inc/captiveportal.inc :

--- orig/captiveportal.inc    2011-02-11 12:00:14.085710379 +0100
+++ new/captiveportal.inc    2011-02-11 14:25:56.361552795 +0100
@@ -211,6 +211,8 @@

         if ($g['booting'])
             echo "Starting captive portal... ";
+        else
+            captiveportal_syslog("restarting captive portal -- disconnect all clients");

         /* kill any running mini_httpd */
         killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid");

Thanks
--
Thomas

Associated revisions

Revision 0e3e825c (diff)
Added by Chris Buechler about 8 years ago

log when CP is restarted. ticket #1278

History

#1 Updated by Chris Buechler about 8 years ago

  • Status changed from New to Resolved

committed, thanks

Also available in: Atom PDF