2015-12-06 19:58:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Console;
|
|
|
|
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
|
|
|
|
|
|
|
class Kernel extends ConsoleKernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The Artisan commands provided by your application.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $commands = [
|
|
|
|
\Pterodactyl\Console\Commands\Inspire::class,
|
2016-01-17 03:42:46 +01:00
|
|
|
\Pterodactyl\Console\Commands\MakeUser::class,
|
2016-01-24 03:42:56 +01:00
|
|
|
\Pterodactyl\Console\Commands\ShowVersion::class,
|
2016-01-26 02:08:48 +01:00
|
|
|
\Pterodactyl\Console\Commands\UpdateEnvironment::class,
|
2016-02-28 00:35:12 +01:00
|
|
|
\Pterodactyl\Console\Commands\RunTasks::class,
|
2016-10-21 22:36:40 +02:00
|
|
|
\Pterodactyl\Console\Commands\ClearTasks::class,
|
2016-09-07 23:48:20 +02:00
|
|
|
\Pterodactyl\Console\Commands\ClearServices::class,
|
2016-09-21 01:33:32 +02:00
|
|
|
\Pterodactyl\Console\Commands\UpdateEmailSettings::class,
|
2016-11-09 23:58:14 +01:00
|
|
|
\Pterodactyl\Console\Commands\CleanServiceBackup::class,
|
2015-12-06 19:58:49 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the application's command schedule.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
|
{
|
2016-10-21 22:36:40 +02:00
|
|
|
$schedule->command('pterodactyl:tasks')->everyMinute()->withoutOverlapping();
|
|
|
|
$schedule->command('pterodactyl:tasks:clearlog')->twiceDaily(3, 15);
|
2016-11-09 23:59:57 +01:00
|
|
|
$schedule->command('pterodactyl:cleanservices')->twiceDaily(1, 13);
|
2015-12-06 19:58:49 +01:00
|
|
|
}
|
|
|
|
}
|