A self hosted livestreaming server.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
import * as child from "child_process";
|
|
|
|
var ircd: child.ChildProcess;
|
|
|
|
function init():void{
|
|
|
|
ircd = child.execFile("./lib/inspircd-3.3.0/run/inspircd", ["restart"], (error, stdout, stderr) => {
|
|
|
|
if (error){
|
|
|
|
console.log("[IRCD] Failed to start Inspircd");
|
|
|
|
console.log(stdout);
|
|
|
|
throw error;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
console.log("[IRCD] Started Inspircd");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function reloadSSL():void{
|
|
|
|
ircd.kill("SIGUSR1");
|
|
|
|
}
|
|
|
|
|
|
|
|
export { init, reloadSSL };
|