Files
pterodactyl-panel/app/Console/Kernel.php
T

42 lines
1.4 KiB
PHP
Raw Normal View History

2015-12-06 13:58:49 -05: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-16 21:42:46 -05:00
\Pterodactyl\Console\Commands\MakeUser::class,
2016-01-23 21:42:56 -05:00
\Pterodactyl\Console\Commands\ShowVersion::class,
\Pterodactyl\Console\Commands\UpdateEnvironment::class,
\Pterodactyl\Console\Commands\RunTasks::class,
2016-10-21 16:36:40 -04:00
\Pterodactyl\Console\Commands\ClearTasks::class,
\Pterodactyl\Console\Commands\ClearServices::class,
2016-09-20 19:33:32 -04:00
\Pterodactyl\Console\Commands\UpdateEmailSettings::class,
\Pterodactyl\Console\Commands\CleanServiceBackup::class,
2017-01-13 23:10:42 -05:00
\Pterodactyl\Console\Commands\AddNode::class,
2017-01-13 23:16:57 -05:00
\Pterodactyl\Console\Commands\AddLocation::class,
2015-12-06 13:58:49 -05:00
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
2016-10-21 16:36:40 -04:00
$schedule->command('pterodactyl:tasks')->everyMinute()->withoutOverlapping();
$schedule->command('pterodactyl:tasks:clearlog')->twiceDaily(3, 15);
$schedule->command('pterodactyl:cleanservices')->twiceDaily(1, 13);
2015-12-06 13:58:49 -05:00
}
}