Mercurial > hg > rlgwebd
comparison rlgwebd-stop @ 208:f06f2d1a5035
Fix possibly insecure permissions on the control socket.
The server's control socket is now in a private directory.
author | John "Elwin" Edwards |
---|---|
date | Sat, 28 Jan 2017 09:57:31 -0500 |
parents | ffe22d88bea1 |
children |
comparison
equal
deleted
inserted
replaced
207:ffe22d88bea1 | 208:f06f2d1a5035 |
---|---|
1 #!/usr/bin/env node | 1 #!/usr/bin/env node |
2 | 2 |
3 var net = require('net'); | 3 var net = require('net'); |
4 var sockpath = "/var/run/rlgwebd.sock"; | 4 var sockpath = "/var/run/rlgwebd/rlgwebd.sock"; |
5 | 5 |
6 var sock = new net.Socket(); | 6 var sock = new net.Socket(); |
7 | 7 |
8 sock.on('error', function (err) { | 8 sock.on('error', function (err) { |
9 console.log("Cannot connect to " + sockpath + ", rlgwebd already stopped."); | 9 console.log("Cannot connect to " + sockpath + ", rlgwebd already stopped."); |