Commit bfa52afc143873bf0bc24cd1ec9e730610b44f45
1 parent
8926a740b4
Exists in
master
Try not to use systemd-notify package
Showing 1 changed file with 7 additions and 3 deletions Side-by-side Diff
sd-notify.js
... | ... | @@ -3,6 +3,8 @@ |
3 | 3 | |
4 | 4 | const MODULE_NAME = 'KOMODO-SDK.SD-NOTIFY'; |
5 | 5 | |
6 | +const USE_SYSTEMD_NOTIFY_PACKAGE = false; | |
7 | + | |
6 | 8 | const util = require('util'); |
7 | 9 | const logger = require('tektrans-logger'); |
8 | 10 | const matrix = require('./matrix'); |
... | ... | @@ -83,9 +85,11 @@ module.exports = async (statusMsg) => { |
83 | 85 | return; |
84 | 86 | } |
85 | 87 | |
86 | - const successOnUsingSystemdNotify = await notifyUseSystemdNotify(statusMsg); | |
87 | - if (successOnUsingSystemdNotify) { | |
88 | - return; | |
88 | + if (USE_SYSTEMD_NOTIFY_PACKAGE) { | |
89 | + const successOnUsingSystemdNotify = await notifyUseSystemdNotify(statusMsg); | |
90 | + if (successOnUsingSystemdNotify) { | |
91 | + return; | |
92 | + } | |
89 | 93 | } |
90 | 94 | |
91 | 95 | const successOnUsingBin = await notifyUseBin(); |