checklist/app/Console/Commands/NotificationStop.php
Juan Felipe Zapata Moreno 9c6eeb5fb3 Commit Inicial
2025-08-05 09:52:38 -06:00

43 lines
902 B
PHP

<?php namespace App\Console\Commands;
/**
* @copyright Copyright (c) 2023 Notsoweb (https://notsoweb.com) - All rights reserved.
*/
use Illuminate\Console\Command;
/**
* Detener servicio de notificaciones
*
* @author Moisés de Jesús Cortés Castellanos <ing.moisesdejesuscortesc@notsoweb.com>
*
* @version 1.0.0
*/
class NotificationStop extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'notification:stop';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Detener servicio de notificaciones en tiempo real';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
echo shell_exec('pm2 delete notification-server');
return Command::SUCCESS;
}
}