Commit c883b5cc47a3ec47b16995bcf0fc5e088081688c
1 parent
6a4e192f5f
Exists in
master
Process title
Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff
index.js
... | ... | @@ -3,9 +3,11 @@ |
3 | 3 | process.chdir(__dirname); |
4 | 4 | |
5 | 5 | require('fs').writeFileSync('pid.txt', process.pid); |
6 | +const path = require('path'); | |
7 | + | |
6 | 8 | const config = require('komodo-sdk/config'); |
7 | 9 | |
8 | 10 | require('./lib/http-command-server'); |
9 | 11 | require('./lib/modem'); |
10 | 12 | |
11 | -process.title = `MODEM-${config.name.toUpperCase()}`; | |
13 | +process.title = `KOMODO-MODEM@${(typeof config.name === 'string') ? config.name.toUpperCase() : path.basename(config.modem.device).toUpperCase()}`; |