diff options
author | jim-p <jimp@pfsense.org> | 2013-08-28 16:22:03 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-08-28 16:22:03 -0400 |
commit | e3ffcea32677a506ecf142e427845ecae7451497 (patch) | |
tree | 45fecada99f14f8f84340fd16e59e7f097ef1e77 /config/servicewatchdog/servicewatchdog_cron.php | |
parent | 429adb3b2dc66541670245bb63e0b952fda0617b (diff) | |
download | pfsense-packages-e3ffcea32677a506ecf142e427845ecae7451497.tar.gz pfsense-packages-e3ffcea32677a506ecf142e427845ecae7451497.tar.bz2 pfsense-packages-e3ffcea32677a506ecf142e427845ecae7451497.zip |
Don't try to (re)start services during boot.
Diffstat (limited to 'config/servicewatchdog/servicewatchdog_cron.php')
-rw-r--r-- | config/servicewatchdog/servicewatchdog_cron.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/servicewatchdog/servicewatchdog_cron.php b/config/servicewatchdog/servicewatchdog_cron.php index 5031ab0b..004afd97 100644 --- a/config/servicewatchdog/servicewatchdog_cron.php +++ b/config/servicewatchdog/servicewatchdog_cron.php @@ -1,6 +1,13 @@ #!/usr/local/bin/php -f <?php +require_once("globals.inc"); require_once("servicewatchdog.inc"); +global $g; + +/* Do nothing at bootup. */ +if ($g['booting'] || file_exists("{$g['varrun_path']}/booting")) + return; + servicewatchdog_check_services(); ?>
\ No newline at end of file |