blob: 8641fecdfa20881367eb62533d713b0ed71ea467 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?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);
} elseif (($report = Request::get('logreport', false, 'string')) !== false) {
$details = file_get_contents($report);
EventLog::info('Messages during bootup hook', $details);
exit(0);
}
Event::systemBooted();
|