view rlgwebd-stop @ 199:34e1bc4fd6b2

Some fixes to the documentation.
author John "Elwin" Edwards
date Mon, 01 Feb 2016 21:20:12 -0500
parents 3bdee6371c3f
children a7cc38a0168d
line wrap: on
line source

#!/usr/bin/env node

var net = require('net');
var sockpath = "/var/run/rlgwebd.sock";

var sock = net.connect(sockpath, function () {
  sock.on('close', function () {
    if (process.argv[2] == "debug")
      console.log("Control socket closed");
  });
  sock.write("quit\n");
});