Commit 6cd9a8f3ab1be8e159daac8520d79284037b804b

Authored by Adhidarma Hadiwinoto
1 parent 6ac8c05d6c
Exists in master

USE_SYSTEMD_NOTIFY_BIN flag

Showing 1 changed file with 6 additions and 3 deletions Side-by-side Diff

... ... @@ -4,6 +4,7 @@
4 4 const MODULE_NAME = 'KOMODO-SDK.SD-NOTIFY';
5 5  
6 6 const USE_SYSTEMD_NOTIFY_PACKAGE = false;
  7 +const USE_SYSTEMD_NOTIFY_BIN = false;
7 8  
8 9 const util = require('util');
9 10 const logger = require('tektrans-logger');
... ... @@ -92,9 +93,11 @@ module.exports = async (statusMsg) => {
92 93 }
93 94 }
94 95  
95   - const successOnUsingBin = await notifyUseBin();
96   - if (successOnUsingBin) {
97   - return;
  96 + if (USE_SYSTEMD_NOTIFY_BIN) {
  97 + const successOnUsingBin = await notifyUseBin();
  98 + if (successOnUsingBin) {
  99 + return;
  100 + }
98 101 }
99 102  
100 103 notifyUseSdNotify();