Commit 4d4d005aa96bdc97589f5593734db1fa0b3441b5
1 parent
61b8dd6132
Exists in
master
Update process.title include 'SMS'
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
index.js
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | process.chdir(__dirname); | 3 | process.chdir(__dirname); |
4 | 4 | ||
5 | const fs = require('fs'); | 5 | const fs = require('fs'); |
6 | fs.writeFileSync('pid.txt', process.pid); | 6 | fs.writeFileSync('pid.txt', process.pid); |
7 | 7 | ||
8 | const config = require('komodo-sdk/config'); | 8 | const config = require('komodo-sdk/config'); |
9 | process.title = `KOMODO-${(config && typeof config.name === 'string') ? config.name.toUpperCase() : 'SMS'}`; | 9 | process.title = `KOMODO-CENTER@${(config && typeof config.name === 'string') ? config.name.toUpperCase() : 'SMS'}`; |
10 | 10 | ||
11 | 11 | ||
12 | require('./lib/transport'); | 12 | require('./lib/transport'); |
13 | require('./lib/handler-callback-server'); | 13 | require('./lib/handler-callback-server'); |