diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2024-02-19 23:54:45 +0000 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2024-02-19 23:54:45 +0000 |
| commit | de8c8f3614a51c69a8fee6a8553aad7166dae4a6 (patch) | |
| tree | 6260b347e3502a8e75f64f0231f2f594b1c0c974 /lib | |
| parent | 94abdf3d80f720f862391d3d49809d88960e34a1 (diff) | |
Use description instead of Id
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/index.js b/lib/index.js index d5d9668..e8d0019 100644 --- a/lib/index.js +++ b/lib/index.js @@ -6,7 +6,7 @@ const internals = { kFieldSeparator: '\n', kKeyValueSeparator: '=', kBlockSeparator: '\n\n', - statusCommand: 'systemctl show --no-page -p Id -p ActiveState', + statusCommand: 'systemctl show --no-page -p Description -p ActiveState', formatStatusOutput(systemctlText) { @@ -29,7 +29,7 @@ const internals = { return { ...statusObject, - [service.Id]: service.ActiveState === internals.kActiveIndicator + [service.Description]: service.ActiveState === internals.kActiveIndicator } }, {}); }, |