Commit 69d2bc05341883f89eef335d8be58dca5d7adc95

Authored by Adhidarma Hadiwinoto
1 parent 90705ae474
Exists in master

Add sd-notify

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

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