RLGWebD: move the control socket into /var/run.

This is a more standard location.  /run is preferred by systemd, but
portability to non-systemd systems is important.
This commit is contained in:
John "Elwin" Edwards 2016-01-14 19:10:46 -05:00
parent 9a709adc58
commit ff0814c7ac
4 changed files with 3 additions and 4 deletions

View file

@ -20,6 +20,5 @@ install: all
cp sqlickrypt dglwatcher ${CHROOT}/bin
for LIB in `ldd ./sqlickrypt | awk '$$1 ~ "^/" {print $$1}; $$3 ~ "^/" {print $$3}'`; do mkdir -p ${CHROOT}`dirname $$LIB`; cp $$LIB ${CHROOT}$$LIB; done
cp rlgwebd.js rlgwebd-stop.js ${BINDIR}
mkdir -p /var/local/rlgwebd
cp ${WEBASSETS} ${CHROOT}/var/www
cp rlgwebd.service /usr/lib/systemd/system

View file

@ -2,7 +2,7 @@
NODE_PATH=/usr/lib/node_modules
LOGFILE=/var/local/rlgwebd/log
CTLSOCKET=/var/local/rlgwebd/ctl
CTLSOCKET=/var/run/rlgwebd.sock
RLGWEBDJS=./rlgwebd.js
export NODE_PATH

View file

@ -1,7 +1,7 @@
#!/usr/bin/env node
var net = require('net');
var sockpath = "/var/local/rlgwebd/ctl";
var sockpath = "/var/run/rlgwebd.sock";
var sock = net.connect(sockpath, function () {
sock.on('close', function () {

View file

@ -14,7 +14,7 @@ var WebSocketServer = require("websocket").server;
/* Configuration variables */
// The first file is NOT in the chroot.
var ctlsocket = "/var/local/rlgwebd/ctl";
var ctlsocket = "/var/run/rlgwebd.sock";
var httpPort = 8080;
var chrootDir = "/var/dgl/";
var dropToUser = "rodney";