1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php // via cron: // @reboot www-data php /path/to/api.php init if (!isLocalExecution()) exit(0); if (($report = Request::get('crashreport', false, 'string')) !== false) { $details = file_get_contents($report); EventLog::failure('Problems during bootup hook', $details); exit(0); } Event::systemBooted();