Compare View
Commits (2)
Changes
Showing 4 changed files Side-by-side Diff
CHANGELOG.md
| ... | ... | @@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d |
| 4 | 4 | |
| 5 | 5 | Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). |
| 6 | 6 | |
| 7 | +#### [v1.45.20](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.19...v1.45.20) | |
| 8 | + | |
| 9 | +- USE_SYSTEMD_NOTIFY_BIN flag [`6cd9a8f`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/6cd9a8f3ab1be8e159daac8520d79284037b804b) | |
| 10 | + | |
| 7 | 11 | #### [v1.45.19](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.18...v1.45.19) |
| 8 | 12 | |
| 13 | +> 19 June 2024 | |
| 14 | + | |
| 9 | 15 | - Try not to use systemd-notify package [`bfa52af`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/bfa52afc143873bf0bc24cd1ec9e730610b44f45) |
| 10 | 16 | |
| 11 | 17 | #### [v1.45.18](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.17...v1.45.18) |
package-lock.json
| 1 | 1 | { |
| 2 | 2 | "name": "komodo-sdk", |
| 3 | - "version": "1.45.19", | |
| 3 | + "version": "1.45.20", | |
| 4 | 4 | "lockfileVersion": 2, |
| 5 | 5 | "requires": true, |
| 6 | 6 | "packages": { |
| 7 | 7 | "": { |
| 8 | 8 | "name": "komodo-sdk", |
| 9 | - "version": "1.45.19", | |
| 9 | + "version": "1.45.20", | |
| 10 | 10 | "license": "ISC", |
| 11 | 11 | "dependencies": { |
| 12 | 12 | "array-unique": "^0.3.2", |
package.json
sd-notify.js
| ... | ... | @@ -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(); |