Mercurial > hg > rlgwebd
diff rlgwebd-stop @ 195:3bdee6371c3f
Change various filenames.
The shell script previously used to launch the daemon is now called
"initscript". The script files have had the ".js" extension removed
from their names.
author | John "Elwin" Edwards |
---|---|
date | Thu, 14 Jan 2016 20:52:29 -0500 |
parents | rlgwebd-stop.js@5483d413a45b |
children | a7cc38a0168d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rlgwebd-stop Thu Jan 14 20:52:29 2016 -0500 @@ -0,0 +1,12 @@ +#!/usr/bin/env node + +var net = require('net'); +var sockpath = "/var/run/rlgwebd.sock"; + +var sock = net.connect(sockpath, function () { + sock.on('close', function () { + if (process.argv[2] == "debug") + console.log("Control socket closed"); + }); + sock.write("quit\n"); +});