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.6](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.5...v1.45.6) | |
8 | + | |
9 | +- Touch matrix.systemd_notified on invoking sd-notify [`7616bf2`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/7616bf2596787222ad693968c61a6889f5813f97) | |
10 | + | |
7 | 11 | #### [v1.45.5](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.4...v1.45.5) |
8 | 12 | |
13 | +> 15 March 2022 | |
14 | + | |
9 | 15 | - Fix sd-notify wrapper [`ec599eb`](https://gitlab.kodesumber.com/komodo/komodo-sdk/commit/ec599ebefe403fe7fec191fc86c1aa234c5b08fe) |
10 | 16 | |
11 | 17 | #### [v1.45.4](https://gitlab.kodesumber.com/komodo/komodo-sdk/compare/v1.45.3...v1.45.4) |
package-lock.json
1 | 1 | { |
2 | 2 | "name": "komodo-sdk", |
3 | - "version": "1.45.5", | |
3 | + "version": "1.45.6", | |
4 | 4 | "lockfileVersion": 2, |
5 | 5 | "requires": true, |
6 | 6 | "packages": { |
7 | 7 | "": { |
8 | 8 | "name": "komodo-sdk", |
9 | - "version": "1.45.5", | |
9 | + "version": "1.45.6", | |
10 | 10 | "license": "ISC", |
11 | 11 | "dependencies": { |
12 | 12 | "array-unique": "^0.3.2", |
package.json
sd-notify.js
... | ... | @@ -4,11 +4,15 @@ |
4 | 4 | const MODULE_NAME = 'KOMODO-SDK.SD-NOTIFY'; |
5 | 5 | |
6 | 6 | const logger = require('tektrans-logger'); |
7 | +const matrix = require('./matrix'); | |
7 | 8 | |
8 | 9 | module.exports = () => { |
9 | 10 | try { |
10 | 11 | const notify = require('sd-notify'); |
12 | + | |
11 | 13 | notify.ready(); |
14 | + matrix.systemd_notified = new Date(); | |
15 | + | |
12 | 16 | logger.info(`${MODULE_NAME} 701F8400: Systemd ready notification has been sent`); |
13 | 17 | } catch (e) { |
14 | 18 | logger.warn(`${MODULE_NAME} A6C99938: Optional dependency not found: sd-notify`); |