diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 17:12:17 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 17:12:17 -0500 |
commit | aa69dbd2565f89cb0df0f3c468e3c502cc1e2c42 (patch) | |
tree | 654a6e35b5a4c3491540e6263f7dbec506fc15ed | |
parent | 166c73546b3b5e2f2528914c0176087160f680e3 (diff) | |
download | pfsense-aa69dbd2565f89cb0df0f3c468e3c502cc1e2c42.zip pfsense-aa69dbd2565f89cb0df0f3c468e3c502cc1e2c42.tar.gz |
Do not launch multiple copies of the captive portal database pruner.
-rw-r--r-- | etc/inc/captiveportal.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index de1c09e..08183f0 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -417,6 +417,10 @@ EOD; /* start up the webserving daemon */ captiveportal_init_webgui(); + /* Kill any existing prunecaptiveportal processes */ + if(file_exists("{$g['varrun_path']}/minicron.pid")) + killbypid("{$g['varrun_path']}/minicron.pid"); + /* start pruning process (interval defaults to 60 seconds) */ mwexec("/usr/local/bin/minicron $croninterval {$g['varrun_path']}/minicron.pid " . "/etc/rc.prunecaptiveportal"); |