Project

General

Profile

Actions

Bug #1278

closed

log when captive portal restarts

Added by Thomas NOEL almost 14 years ago. Updated almost 14 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
Plus Target Version:
Release Notes:
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

Actions

Also available in: Atom PDF