rlgwebd/rlgwebd-stop
John "Elwin" Edwards 6457f18b36 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.
2016-01-14 20:52:29 -05:00

12 lines
282 B
JavaScript
Executable file

#!/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");
});