rlgwebd/rlgwebd-stop.js

13 lines
282 B
JavaScript
Raw Normal View History

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