Browse Source

Initial commit

pull/1235/head
billz 2 months ago
parent
commit
cbdc5a11e5
  1. 12
      ajax/logging/clearlog.php

12
ajax/logging/clearlog.php

@ -0,0 +1,12 @@
<?php
require_once '../../includes/config.php';
require_once '../../includes/functions.php';
if (isset($_POST['svc'])) {
$tmplog = '/tmp/' .$_POST['svc']. '.log';
// clear log for requested service
exec("sudo truncate -s 0 $tmplog", $return);
echo json_encode($return);
}
Loading…
Cancel
Save