From c092b906d7947af0d60364782b831598a2b5512a Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sat, 17 Aug 2024 17:31:50 +0700 Subject: [PATCH] Monitor unit --- package-lock.json | 4 ++-- package.json | 2 +- sudoutil.js | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb72b41..6c5d16b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "domcloud-bridge", - "version": "0.54.0", + "version": "0.55.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "domcloud-bridge", - "version": "0.54.0", + "version": "0.55.0", "license": "MIT", "dependencies": { "axios": "^1.6.8", diff --git a/package.json b/package.json index 0f37715..0a643ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "domcloud-bridge", - "version": "0.54.0", + "version": "0.55.0", "description": "Deployment runner for DOM Cloud", "main": "app.js", "engines": { diff --git a/sudoutil.js b/sudoutil.js index acd8f34..d62c373 100755 --- a/sudoutil.js +++ b/sudoutil.js @@ -294,6 +294,7 @@ switch (cli.args.shift()) { 'ip6tables', 'fail2ban', 'earlyoom', + 'unit', ] var statutes = exec(`systemctl is-failed ${services.join(' ')}`, { silent: true }).split('\n').filter((s) => s !== '');