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:
parent
9a709adc58
commit
ff0814c7ac
4 changed files with 3 additions and 4 deletions
1
Makefile
1
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
|
||||
|
|
|
|||
2
rlgwebd
2
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
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue