mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
18 lines
No EOL
476 B
PHP
18 lines
No EOL
476 B
PHP
<?php
|
|
|
|
require_once dirname(__FILE__) . '/../../videos/configuration.php';
|
|
require_once $global['systemRootPath'] . 'plugin/YPTSocket/functions.php';
|
|
|
|
if (!isCommandLineInterface()) {
|
|
die("Command line only");
|
|
}
|
|
ob_end_flush();
|
|
$force = @$argv[1];
|
|
echo 'Restart socket server' . PHP_EOL;
|
|
if($force == 'force'){
|
|
echo 'Kill it if need' . PHP_EOL;
|
|
restartServer();
|
|
}else{
|
|
echo 'Do not kill if is running' . PHP_EOL;
|
|
restartServerIfIsDead();
|
|
} |