parent
d05c59c896
commit
577612cee5
@ -1,4 +1,4 @@ |
|||||||
node_modules |
node_modules |
||||||
media |
site |
||||||
build/** |
build/** |
||||||
lib/inspircd-* |
lib/inspircd-* |
||||||
|
@ -0,0 +1,20 @@ |
|||||||
|
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 }; |
Reference in new issue