comparison rlgwebd-stop.js @ 193:80ca029f0906

Add a script to stop RLGWebD. socat is no longer needed, nor is preventing systemd from sending signals.
author John "Elwin" Edwards
date Sat, 02 Jan 2016 14:33:48 -0500
parents
children 5483d413a45b
comparison
equal deleted inserted replaced
192:addc4e3456c4 193:80ca029f0906
1 #!/usr/bin/env node
2
3 var net = require('net');
4 var sockpath = "/var/local/rlgwebd/ctl";
5
6 var sock = net.connect(sockpath, function () {
7 sock.on('close', function () {
8 if (process.argv[2] == "debug")
9 console.log("Control socket closed");
10 });
11 sock.write("quit\n");
12 });