Commit b75c34c4ae5c99e5e2facd3752ac0fd870c09bc4

Authored by Adhidarma Hadiwinoto
1 parent ab58df4363
Exists in master

Call sdNotify on started

Showing 1 changed file with 5 additions and 2 deletions Side-by-side Diff

... ... @@ -2,11 +2,14 @@ process.chdir(__dirname);
2 2  
3 3 const fs = require('fs');
4 4  
5   -fs.writeFileSync('pid.txt', process.pid.toString());
6   -
7 5 const config = require('komodo-sdk/config');
8 6  
9 7 global.KOMODO_LOG_LABEL = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`;
10 8 process.title = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`;
11 9  
  10 +const sdNotify = require('komodo-sdk/sd-notify');
  11 +
12 12 require('./lib/transport');
  13 +
  14 +fs.writeFileSync('pid.txt', process.pid.toString());
  15 +sdNotify();