diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 17:19:33 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 17:19:33 -0500 |
commit | e8aef0eccc621054ebcaed2ae832cf7fbc337640 (patch) | |
tree | 3905256ae56c51ed9de1b0439a4c9d85ae1c43af | |
parent | aa69dbd2565f89cb0df0f3c468e3c502cc1e2c42 (diff) | |
download | pfsense-e8aef0eccc621054ebcaed2ae832cf7fbc337640.zip pfsense-e8aef0eccc621054ebcaed2ae832cf7fbc337640.tar.gz |
minicron is now used on a number of items in the gui. tell the cp prune process to use the pid name cp-prunedb.pid
-rw-r--r-- | etc/inc/captiveportal.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 08183f0..5518dee 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -226,7 +226,7 @@ function captiveportal_configure() { touch("{$g['vardb_path']}/captiveportal.db"); /* kill any running minicron */ - killbypid("{$g['varrun_path']}/minicron.pid"); + killbypid("{$g['varrun_path']}/cp_prunedb.pid"); /* init ipfw rules */ captiveportal_init_rules(true); @@ -418,11 +418,11 @@ EOD; captiveportal_init_webgui(); /* Kill any existing prunecaptiveportal processes */ - if(file_exists("{$g['varrun_path']}/minicron.pid")) - killbypid("{$g['varrun_path']}/minicron.pid"); + if(file_exists("{$g['varrun_path']}/cp_prunedb.pid")) + killbypid("{$g['varrun_path']}/cp_prunedb.pid"); /* start pruning process (interval defaults to 60 seconds) */ - mwexec("/usr/local/bin/minicron $croninterval {$g['varrun_path']}/minicron.pid " . + mwexec("/usr/local/bin/minicron $croninterval {$g['varrun_path']}/cp_prunedb.pid " . "/etc/rc.prunecaptiveportal"); /* generate radius server database */ @@ -433,7 +433,7 @@ EOD; } else { killbypid("{$g['varrun_path']}/lighty-CaptivePortal.pid"); - killbypid("{$g['varrun_path']}/minicron.pid"); + killbypid("{$g['varrun_path']}/cp_prunedb.pid"); captiveportal_radius_stop_all(); |