Commit b75c34c4ae5c99e5e2facd3752ac0fd870c09bc4
1 parent
ab58df4363
Exists in
master
Call sdNotify on started
Showing 1 changed file with 5 additions and 2 deletions Inline Diff
index.js
1 | process.chdir(__dirname); | 1 | process.chdir(__dirname); |
2 | 2 | ||
3 | const fs = require('fs'); | 3 | const fs = require('fs'); |
4 | 4 | ||
5 | fs.writeFileSync('pid.txt', process.pid.toString()); | ||
6 | |||
7 | const config = require('komodo-sdk/config'); | 5 | const config = require('komodo-sdk/config'); |
8 | 6 | ||
9 | global.KOMODO_LOG_LABEL = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; | 7 | global.KOMODO_LOG_LABEL = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; |
10 | process.title = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; | 8 | process.title = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; |
11 | 9 | ||
10 | const sdNotify = require('komodo-sdk/sd-notify'); | ||
11 | |||
12 | require('./lib/transport'); | 12 | require('./lib/transport'); |
13 | |||
14 | fs.writeFileSync('pid.txt', process.pid.toString()); |