syslog: restructure code
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
const server = require('./server.js');
|
||||
|
||||
const options = {
|
||||
logFolder: process.argv[2] || '/home/yellowtent/platformdata/logs',
|
||||
port: 2514
|
||||
};
|
||||
|
||||
async function main() {
|
||||
await server.start(options);
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user