Add scripts to launch Dougal services in production

This commit is contained in:
D. Berge
2020-09-13 15:35:36 +02:00
parent 225c710142
commit d45e17fce3
4 changed files with 12 additions and 0 deletions

1
lib/www/server/index.js Normal file → Executable file
View File

@@ -1,3 +1,4 @@
#!/usr/bin/node
const api = require('./api');
const ws = require('./ws');

2
lib/www/server/udp/server.js Normal file → Executable file
View File

@@ -1,3 +1,5 @@
#!/usr/bin/node
const dgram = require('dgram');
const cfg = require("../lib/config");
const { navdata } = require('../lib/db');

4
sbin/start-api.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
. ~/.profile
/srv/dougal/software/lib/www/server/index.js

5
sbin/start-rti.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
. ~/.profile
/srv/dougal/software/lib/www/server/udp/server.js