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.
20 lines
447 B
20 lines
447 B
import * as child from "child_process";
|
|
var ircd: child.ChildProcess;
|
|
function boot():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 { boot, reloadSSL }; |