Commit 4c9bfe06 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(captive portal) catch exception for process_accounting_messages.php

(cherry picked from commit 9ff3fcc7)
parent d33b87a2
...@@ -220,7 +220,11 @@ def main(): ...@@ -220,7 +220,11 @@ def main():
bgprocess.db.close() bgprocess.db.close()
# process accounting messages (uses php script, for reuse of Auth classes) # process accounting messages (uses php script, for reuse of Auth classes)
subprocess.call(['/usr/local/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php']) try:
subprocess.call(['/usr/local/opnsense/scripts/OPNsense/CaptivePortal/process_accounting_messages.php'])
except OSError:
# if accounting script crashes don't exit backgroung process
pass
# sleep # sleep
time.sleep(5) time.sleep(5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment