Commit 77ec494b8d0f968688fca570bb33d197a549c279
1 parent
12ac49f356
Exists in
master
service
Showing 1 changed file with 15 additions and 0 deletions Side-by-side Diff
index.js
... | ... | @@ -0,0 +1,15 @@ |
1 | +process.chdir(__dirname); | |
2 | + | |
3 | +const fs = require('fs'); | |
4 | + | |
5 | +fs.writeFileSync('pid.txt', process.pid); | |
6 | + | |
7 | +const config = require('komodo-sdk/config'); | |
8 | + | |
9 | +global.KOMODO_LOG_LABEL = `KOMODO-CENTER@${(config && typeof config.name === 'string') ? config.name.toUpperCase() : 'SMSTOOLS'}`; | |
10 | +process.title = global.KOMODO_LOG_LABEL; | |
11 | + | |
12 | +const messagingClient = require('komodo-center-messaging-client-lib'); | |
13 | +const transport = require('./lib/transport'); | |
14 | + | |
15 | +messagingClient.setTransport(transport); |