1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Pterodactyl\Console; |
4
|
|
|
|
5
|
|
|
use Illuminate\Console\Scheduling\Schedule; |
6
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
7
|
|
|
|
8
|
|
|
class Kernel extends ConsoleKernel |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* The Artisan commands provided by your application. |
12
|
|
|
* |
13
|
|
|
* @var array |
14
|
|
|
*/ |
15
|
|
|
protected $commands = [ |
16
|
|
|
\Pterodactyl\Console\Commands\Inspire::class, |
17
|
|
|
\Pterodactyl\Console\Commands\MakeUser::class, |
18
|
|
|
\Pterodactyl\Console\Commands\ShowVersion::class, |
19
|
|
|
\Pterodactyl\Console\Commands\UpdateEnvironment::class, |
20
|
|
|
\Pterodactyl\Console\Commands\RunTasks::class, |
21
|
|
|
\Pterodactyl\Console\Commands\ClearTasks::class, |
22
|
|
|
\Pterodactyl\Console\Commands\ClearServices::class, |
23
|
|
|
\Pterodactyl\Console\Commands\UpdateEmailSettings::class, |
24
|
|
|
\Pterodactyl\Console\Commands\CleanServiceBackup::class, |
25
|
|
|
\Pterodactyl\Console\Commands\AddNode::class, |
26
|
|
|
\Pterodactyl\Console\Commands\AddLocation::class, |
27
|
|
|
\Pterodactyl\Console\Commands\RebuildServer::class, |
28
|
|
|
]; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* Define the application's command schedule. |
32
|
|
|
* |
33
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule |
34
|
|
|
* @return void |
35
|
|
|
*/ |
36
|
|
|
protected function schedule(Schedule $schedule) |
37
|
|
|
{ |
38
|
|
|
$schedule->command('pterodactyl:tasks')->everyMinute()->withoutOverlapping(); |
39
|
|
|
$schedule->command('pterodactyl:tasks:clearlog')->twiceDaily(3, 15); |
40
|
|
|
$schedule->command('pterodactyl:cleanservices')->twiceDaily(1, 13); |
41
|
|
|
} |
42
|
|
|
} |
43
|
|
|
|