Commit e3bb6fdbabcddd9992f881e7a4ebe3092cf1dd9a
1 parent
17b3eccb61
Exists in
master
Urutan pada index.js
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
index.js
... | ... | @@ -8,11 +8,11 @@ fs.writeFileSync('pid.txt', process.pid); |
8 | 8 | const path = require('path'); |
9 | 9 | const config = require('komodo-sdk/config'); |
10 | 10 | |
11 | -process.title = (typeof config.name === 'string') ? config.name.toUpperCase() : `MODEM-${path.basename(config.modem.device).replace('tty', '').toUpperCase()}`; | |
12 | - | |
13 | 11 | if (!fs.existsSync(config.modem.device)) { |
14 | 12 | process.exit(4); |
15 | 13 | } |
16 | 14 | |
15 | +process.title = (typeof config.name === 'string') ? config.name.toUpperCase() : `MODEM-${path.basename(config.modem.device).replace('tty', '').toUpperCase()}`; | |
16 | + | |
17 | 17 | require('./lib/http-command-server'); |
18 | 18 | require('./lib/modem'); |