Add a script to stop RLGWebD.
socat is no longer needed, nor is preventing systemd from sending signals.
This commit is contained in:
parent
ec5c79d46e
commit
9a709adc58
3 changed files with 15 additions and 3 deletions
12
rlgwebd-stop.js
Executable file
12
rlgwebd-stop.js
Executable 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");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue