Commit 966ecafc0ff6ead0766d552c0771158a61db4cc1

Authored by Adhidarma Hadiwinoto
1 parent c8e72853f5
Exists in master

Ubah urutan di index.js

Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff

1 1 'use strict';
2 2  
3 3 process.chdir(__dirname);
4   -
5 4 require('fs').writeFileSync('pid.txt', process.pid);
6   -const path = require('path');
7 5  
  6 +const path = require('path');
8 7 const config = require('komodo-sdk/config');
9 8  
  9 +process.title = `KOMODO-MODEM@${(typeof config.name === 'string') ? config.name.toUpperCase() : path.basename(config.modem.device).toUpperCase()}`;
  10 +
10 11 require('./lib/http-command-server');
11 12 require('./lib/modem');
12   -
13   -process.title = `KOMODO-MODEM@${(typeof config.name === 'string') ? config.name.toUpperCase() : path.basename(config.modem.device).toUpperCase()}`;