Add a script to stop RLGWebD.

socat is no longer needed, nor is preventing systemd from sending
signals.
This commit is contained in:
John "Elwin" Edwards 2016-01-02 14:33:48 -05:00
parent ec5c79d46e
commit 9a709adc58
3 changed files with 15 additions and 3 deletions

12
rlgwebd-stop.js Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env node
var net = require('net');
var sockpath = "/var/local/rlgwebd/ctl";
var sock = net.connect(sockpath, function () {
sock.on('close', function () {
if (process.argv[2] == "debug")
console.log("Control socket closed");
});
sock.write("quit\n");
});