diff --git a/sd-notify.js b/sd-notify.js index ee5f3d0..2025b9a 100644 --- a/sd-notify.js +++ b/sd-notify.js @@ -4,6 +4,7 @@ const MODULE_NAME = 'KOMODO-SDK.SD-NOTIFY'; const USE_SYSTEMD_NOTIFY_PACKAGE = false; +const USE_SYSTEMD_NOTIFY_BIN = false; const util = require('util'); const logger = require('tektrans-logger'); @@ -92,9 +93,11 @@ module.exports = async (statusMsg) => { } } - const successOnUsingBin = await notifyUseBin(); - if (successOnUsingBin) { - return; + if (USE_SYSTEMD_NOTIFY_BIN) { + const successOnUsingBin = await notifyUseBin(); + if (successOnUsingBin) { + return; + } } notifyUseSdNotify();