Browse Source

落ち確認

bc-detail
miteruzo 4 months ago
parent
commit
ba39be8551
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      broadcast/index.frm.php
  2. +5
    -0
      broadcast/index.php

+ 1
- 0
broadcast/index.frm.php View File

@@ -19,6 +19,7 @@
<?php else: ?>
<title>伊地知ニジカ放送局 - ニジカ返答ログ</title>
<?php endif ?>
<input type="hidden" id="available" value="<?= $available ? '1' : '0' ?>" />
</head>

<body>


+ 5
- 0
broadcast/index.php View File

@@ -7,6 +7,11 @@ const LOG_PATH = './log.txt';

$log_data = [];

exec ("(ps -Af | grep -e '^miteruzo' | grep 'python3 main.py') && (ps -Af | grep -e '^miteruzo' | grep 'obs')",
$output, $exit_code);
$available = $exit_code === 0;
unset ($output, $exit_code);

$page = (int) ($_GET['p'] ?? 1);
$length = (int) ($_GET['max'] ?? 20);
$asc = ($_GET['asc'] ?? 0) != 0;


Loading…
Cancel
Save