diff --git a/Makefile b/Makefile index 21acec9..8616941 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/rlgwebd b/rlgwebd index 7da8205..21e0462 100755 --- a/rlgwebd +++ b/rlgwebd @@ -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 diff --git a/rlgwebd-stop.js b/rlgwebd-stop.js index 479e7aa..7fdb2e1 100755 --- a/rlgwebd-stop.js +++ b/rlgwebd-stop.js @@ -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 () { diff --git a/rlgwebd.js b/rlgwebd.js index c29322b..4142d68 100755 --- a/rlgwebd.js +++ b/rlgwebd.js @@ -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";