@enjoys/context-engine 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,30 +2,807 @@
2
2
  "name": "systemctl",
3
3
  "description": "Control the systemd system and service manager",
4
4
  "category": "system",
5
- "platforms": ["linux"],
6
- "shells": ["bash", "zsh", "fish"],
5
+ "platforms": [
6
+ "linux"
7
+ ],
8
+ "shells": [
9
+ "bash",
10
+ "zsh",
11
+ "fish"
12
+ ],
7
13
  "subcommands": [
8
- { "name": "start", "description": "Start a service", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl start nginx", "systemctl start docker"] },
9
- { "name": "stop", "description": "Stop a service", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl stop nginx"] },
10
- { "name": "restart", "description": "Restart a service", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl restart nginx"] },
11
- { "name": "reload", "description": "Reload a service configuration", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl reload nginx"] },
12
- { "name": "status", "description": "Show service status", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl status nginx", "systemctl status docker"] },
13
- { "name": "enable", "description": "Enable a service to start at boot", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "options": [{ "name": "--now", "description": "Also start the service" }], "examples": ["systemctl enable nginx", "systemctl enable --now docker"] },
14
- { "name": "disable", "description": "Disable a service from starting at boot", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl disable nginx"] },
15
- { "name": "is-active", "description": "Check if a service is active", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl is-active nginx"] },
16
- { "name": "is-enabled", "description": "Check if a service is enabled", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl is-enabled nginx"] },
17
- { "name": "list-units", "description": "List loaded units", "options": [{ "name": "--type", "description": "Filter by unit type", "type": "string" }, { "name": "--state", "description": "Filter by state", "type": "string" }], "examples": ["systemctl list-units", "systemctl list-units --type=service", "systemctl list-units --state=failed"] },
18
- { "name": "daemon-reload", "description": "Reload systemd manager configuration", "examples": ["systemctl daemon-reload"] },
19
- { "name": "cat", "description": "Show unit file contents", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl cat nginx"] },
20
- { "name": "edit", "description": "Edit a unit file", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl edit nginx", "systemctl edit --full nginx"] },
21
- { "name": "mask", "description": "Mask a unit (prevent starting)", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl mask nginx"] },
22
- { "name": "unmask", "description": "Unmask a unit", "args": [{ "name": "<unit>", "type": "string", "required": true, "description": "Service unit name" }], "examples": ["systemctl unmask nginx"] }
14
+ {
15
+ "name": "start",
16
+ "description": "Start (activate) one or more units",
17
+ "args": [
18
+ {
19
+ "name": "<unit>",
20
+ "type": "string",
21
+ "required": true,
22
+ "description": "Unit name(s) to start"
23
+ }
24
+ ],
25
+ "examples": [
26
+ "systemctl start nginx",
27
+ "systemctl start nginx postgresql redis"
28
+ ]
29
+ },
30
+ {
31
+ "name": "stop",
32
+ "description": "Stop (deactivate) one or more units",
33
+ "args": [
34
+ {
35
+ "name": "<unit>",
36
+ "type": "string",
37
+ "required": true,
38
+ "description": "Unit name(s) to stop"
39
+ }
40
+ ],
41
+ "examples": [
42
+ "systemctl stop nginx",
43
+ "systemctl stop nginx.service"
44
+ ]
45
+ },
46
+ {
47
+ "name": "restart",
48
+ "description": "Restart one or more units (stop then start)",
49
+ "args": [
50
+ {
51
+ "name": "<unit>",
52
+ "type": "string",
53
+ "required": true,
54
+ "description": "Unit name(s)"
55
+ }
56
+ ],
57
+ "examples": [
58
+ "systemctl restart nginx",
59
+ "systemctl restart nginx php8.2-fpm"
60
+ ]
61
+ },
62
+ {
63
+ "name": "reload",
64
+ "description": "Reload service configuration without full restart",
65
+ "args": [
66
+ {
67
+ "name": "<unit>",
68
+ "type": "string",
69
+ "required": true,
70
+ "description": "Unit name(s)"
71
+ }
72
+ ],
73
+ "examples": [
74
+ "systemctl reload nginx"
75
+ ]
76
+ },
77
+ {
78
+ "name": "reload-or-restart",
79
+ "description": "Reload if supported, otherwise restart",
80
+ "args": [
81
+ {
82
+ "name": "<unit>",
83
+ "type": "string",
84
+ "required": true,
85
+ "description": "Unit name(s)"
86
+ }
87
+ ],
88
+ "examples": [
89
+ "systemctl reload-or-restart nginx"
90
+ ]
91
+ },
92
+ {
93
+ "name": "try-restart",
94
+ "description": "Restart only if the unit is already running",
95
+ "args": [
96
+ {
97
+ "name": "<unit>",
98
+ "type": "string",
99
+ "required": true,
100
+ "description": "Unit name(s)"
101
+ }
102
+ ],
103
+ "examples": [
104
+ "systemctl try-restart nginx"
105
+ ]
106
+ },
107
+ {
108
+ "name": "status",
109
+ "description": "Show runtime status of one or more units",
110
+ "args": [
111
+ {
112
+ "name": "<unit>",
113
+ "type": "string",
114
+ "required": false,
115
+ "description": "Unit name(s)"
116
+ }
117
+ ],
118
+ "options": [
119
+ {
120
+ "name": "-l",
121
+ "description": "Show full log output"
122
+ },
123
+ {
124
+ "name": "--no-pager",
125
+ "description": "Don't use pager"
126
+ }
127
+ ],
128
+ "examples": [
129
+ "systemctl status",
130
+ "systemctl status nginx",
131
+ "systemctl status nginx --no-pager -l"
132
+ ]
133
+ },
134
+ {
135
+ "name": "show",
136
+ "description": "Show properties of one or more units",
137
+ "args": [
138
+ {
139
+ "name": "<unit>",
140
+ "type": "string",
141
+ "required": false,
142
+ "description": "Unit name(s)"
143
+ }
144
+ ],
145
+ "options": [
146
+ {
147
+ "name": "-p",
148
+ "description": "Show specific property",
149
+ "type": "string"
150
+ },
151
+ {
152
+ "name": "--value",
153
+ "description": "Only show value, not key=value"
154
+ }
155
+ ],
156
+ "examples": [
157
+ "systemctl show nginx",
158
+ "systemctl show nginx -p MainPID --value",
159
+ "systemctl show nginx -p ActiveState,SubState"
160
+ ]
161
+ },
162
+ {
163
+ "name": "enable",
164
+ "description": "Enable unit to start at boot",
165
+ "args": [
166
+ {
167
+ "name": "<unit>",
168
+ "type": "string",
169
+ "required": true,
170
+ "description": "Unit name(s)"
171
+ }
172
+ ],
173
+ "options": [
174
+ {
175
+ "name": "--now",
176
+ "description": "Also start the unit immediately"
177
+ },
178
+ {
179
+ "name": "--no-reload",
180
+ "description": "Don't reload daemon after enabling"
181
+ }
182
+ ],
183
+ "examples": [
184
+ "systemctl enable nginx",
185
+ "systemctl enable --now nginx",
186
+ "systemctl enable nginx postgresql redis"
187
+ ]
188
+ },
189
+ {
190
+ "name": "disable",
191
+ "description": "Disable unit from starting at boot",
192
+ "args": [
193
+ {
194
+ "name": "<unit>",
195
+ "type": "string",
196
+ "required": true,
197
+ "description": "Unit name(s)"
198
+ }
199
+ ],
200
+ "options": [
201
+ {
202
+ "name": "--now",
203
+ "description": "Also stop the unit immediately"
204
+ }
205
+ ],
206
+ "examples": [
207
+ "systemctl disable nginx",
208
+ "systemctl disable --now nginx"
209
+ ]
210
+ },
211
+ {
212
+ "name": "reenable",
213
+ "description": "Disable and then enable (reset symlinks)",
214
+ "args": [
215
+ {
216
+ "name": "<unit>",
217
+ "type": "string",
218
+ "required": true,
219
+ "description": "Unit name(s)"
220
+ }
221
+ ],
222
+ "examples": [
223
+ "systemctl reenable nginx"
224
+ ]
225
+ },
226
+ {
227
+ "name": "is-active",
228
+ "description": "Check whether unit is active (exit code 0 = active)",
229
+ "args": [
230
+ {
231
+ "name": "<unit>",
232
+ "type": "string",
233
+ "required": true,
234
+ "description": "Unit name(s)"
235
+ }
236
+ ],
237
+ "examples": [
238
+ "systemctl is-active nginx",
239
+ "systemctl is-active nginx && echo 'Running'"
240
+ ]
241
+ },
242
+ {
243
+ "name": "is-enabled",
244
+ "description": "Check whether unit is enabled (exit code 0 = enabled)",
245
+ "args": [
246
+ {
247
+ "name": "<unit>",
248
+ "type": "string",
249
+ "required": true,
250
+ "description": "Unit name(s)"
251
+ }
252
+ ],
253
+ "examples": [
254
+ "systemctl is-enabled nginx"
255
+ ]
256
+ },
257
+ {
258
+ "name": "is-failed",
259
+ "description": "Check whether unit is in failed state",
260
+ "args": [
261
+ {
262
+ "name": "<unit>",
263
+ "type": "string",
264
+ "required": true,
265
+ "description": "Unit name(s)"
266
+ }
267
+ ],
268
+ "examples": [
269
+ "systemctl is-failed nginx"
270
+ ]
271
+ },
272
+ {
273
+ "name": "list-units",
274
+ "description": "List loaded units",
275
+ "options": [
276
+ {
277
+ "name": "--type",
278
+ "description": "Filter by unit type (service, socket, timer, mount, etc.)",
279
+ "type": "string"
280
+ },
281
+ {
282
+ "name": "--state",
283
+ "description": "Filter by state (running, failed, active, inactive, etc.)",
284
+ "type": "string"
285
+ },
286
+ {
287
+ "name": "--all",
288
+ "description": "Show all loaded units including inactive"
289
+ },
290
+ {
291
+ "name": "--plain",
292
+ "description": "Plain output (no tree, no colors)"
293
+ }
294
+ ],
295
+ "examples": [
296
+ "systemctl list-units",
297
+ "systemctl list-units --type=service",
298
+ "systemctl list-units --type=service --state=running",
299
+ "systemctl list-units --state=failed",
300
+ "systemctl list-units --all --type=timer"
301
+ ]
302
+ },
303
+ {
304
+ "name": "list-unit-files",
305
+ "description": "List installed unit files and their enablement state",
306
+ "options": [
307
+ {
308
+ "name": "--type",
309
+ "description": "Filter by unit type",
310
+ "type": "string"
311
+ },
312
+ {
313
+ "name": "--state",
314
+ "description": "Filter by enablement state (enabled, disabled, static, masked)",
315
+ "type": "string"
316
+ }
317
+ ],
318
+ "examples": [
319
+ "systemctl list-unit-files",
320
+ "systemctl list-unit-files --type=service",
321
+ "systemctl list-unit-files --state=enabled"
322
+ ]
323
+ },
324
+ {
325
+ "name": "list-timers",
326
+ "description": "List timer units with next/last trigger times",
327
+ "options": [
328
+ {
329
+ "name": "--all",
330
+ "description": "Show all timers including inactive"
331
+ }
332
+ ],
333
+ "examples": [
334
+ "systemctl list-timers",
335
+ "systemctl list-timers --all"
336
+ ]
337
+ },
338
+ {
339
+ "name": "list-sockets",
340
+ "description": "List socket units and their listeners",
341
+ "options": [
342
+ {
343
+ "name": "--all",
344
+ "description": "Show all sockets"
345
+ }
346
+ ],
347
+ "examples": [
348
+ "systemctl list-sockets"
349
+ ]
350
+ },
351
+ {
352
+ "name": "list-dependencies",
353
+ "description": "Show dependency tree of a unit",
354
+ "args": [
355
+ {
356
+ "name": "<unit>",
357
+ "type": "string",
358
+ "required": false,
359
+ "description": "Unit name"
360
+ }
361
+ ],
362
+ "options": [
363
+ {
364
+ "name": "--reverse",
365
+ "description": "Show reverse dependencies (what depends on this)"
366
+ },
367
+ {
368
+ "name": "--all",
369
+ "description": "Show all dependencies recursively"
370
+ }
371
+ ],
372
+ "examples": [
373
+ "systemctl list-dependencies nginx",
374
+ "systemctl list-dependencies nginx --reverse"
375
+ ]
376
+ },
377
+ {
378
+ "name": "daemon-reload",
379
+ "description": "Reload systemd manager configuration (after editing unit files)",
380
+ "examples": [
381
+ "systemctl daemon-reload"
382
+ ]
383
+ },
384
+ {
385
+ "name": "daemon-reexec",
386
+ "description": "Re-execute the systemd manager",
387
+ "examples": [
388
+ "systemctl daemon-reexec"
389
+ ]
390
+ },
391
+ {
392
+ "name": "cat",
393
+ "description": "Show the unit file and drop-in snippets",
394
+ "args": [
395
+ {
396
+ "name": "<unit>",
397
+ "type": "string",
398
+ "required": true,
399
+ "description": "Unit name"
400
+ }
401
+ ],
402
+ "examples": [
403
+ "systemctl cat nginx",
404
+ "systemctl cat nginx.service"
405
+ ]
406
+ },
407
+ {
408
+ "name": "edit",
409
+ "description": "Edit a unit file or create a drop-in override",
410
+ "args": [
411
+ {
412
+ "name": "<unit>",
413
+ "type": "string",
414
+ "required": true,
415
+ "description": "Unit name"
416
+ }
417
+ ],
418
+ "options": [
419
+ {
420
+ "name": "--full",
421
+ "description": "Edit the full unit file instead of creating a drop-in"
422
+ },
423
+ {
424
+ "name": "--force",
425
+ "description": "Create new unit file if it doesn't exist"
426
+ }
427
+ ],
428
+ "examples": [
429
+ "systemctl edit nginx",
430
+ "systemctl edit --full nginx",
431
+ "systemctl edit --force myapp.service"
432
+ ]
433
+ },
434
+ {
435
+ "name": "mask",
436
+ "description": "Mask a unit — completely prevent it from starting",
437
+ "args": [
438
+ {
439
+ "name": "<unit>",
440
+ "type": "string",
441
+ "required": true,
442
+ "description": "Unit name(s)"
443
+ }
444
+ ],
445
+ "examples": [
446
+ "systemctl mask nginx"
447
+ ]
448
+ },
449
+ {
450
+ "name": "unmask",
451
+ "description": "Unmask a unit — allow it to be started again",
452
+ "args": [
453
+ {
454
+ "name": "<unit>",
455
+ "type": "string",
456
+ "required": true,
457
+ "description": "Unit name(s)"
458
+ }
459
+ ],
460
+ "examples": [
461
+ "systemctl unmask nginx"
462
+ ]
463
+ },
464
+ {
465
+ "name": "kill",
466
+ "description": "Send a signal to processes of a unit",
467
+ "args": [
468
+ {
469
+ "name": "<unit>",
470
+ "type": "string",
471
+ "required": true,
472
+ "description": "Unit name(s)"
473
+ }
474
+ ],
475
+ "options": [
476
+ {
477
+ "name": "-s",
478
+ "description": "Signal to send (SIGTERM, SIGKILL, SIGHUP, etc.)",
479
+ "type": "string"
480
+ },
481
+ {
482
+ "name": "--kill-who",
483
+ "description": "Who to kill: main, control, all",
484
+ "type": "string"
485
+ }
486
+ ],
487
+ "examples": [
488
+ "systemctl kill nginx",
489
+ "systemctl kill -s SIGHUP nginx",
490
+ "systemctl kill --kill-who=main nginx"
491
+ ]
492
+ },
493
+ {
494
+ "name": "reset-failed",
495
+ "description": "Reset the failed state of units",
496
+ "args": [
497
+ {
498
+ "name": "<unit>",
499
+ "type": "string",
500
+ "required": false,
501
+ "description": "Unit name(s) or all if omitted"
502
+ }
503
+ ],
504
+ "examples": [
505
+ "systemctl reset-failed",
506
+ "systemctl reset-failed nginx"
507
+ ]
508
+ },
509
+ {
510
+ "name": "isolate",
511
+ "description": "Start one unit and stop all others (switch target)",
512
+ "args": [
513
+ {
514
+ "name": "<unit>",
515
+ "type": "string",
516
+ "required": true,
517
+ "description": "Target to isolate"
518
+ }
519
+ ],
520
+ "examples": [
521
+ "systemctl isolate multi-user.target",
522
+ "systemctl isolate rescue.target"
523
+ ]
524
+ },
525
+ {
526
+ "name": "get-default",
527
+ "description": "Show the default boot target",
528
+ "examples": [
529
+ "systemctl get-default"
530
+ ]
531
+ },
532
+ {
533
+ "name": "set-default",
534
+ "description": "Set the default boot target",
535
+ "args": [
536
+ {
537
+ "name": "<target>",
538
+ "type": "string",
539
+ "required": true,
540
+ "description": "Target name"
541
+ }
542
+ ],
543
+ "examples": [
544
+ "systemctl set-default multi-user.target",
545
+ "systemctl set-default graphical.target"
546
+ ]
547
+ },
548
+ {
549
+ "name": "reboot",
550
+ "description": "Reboot the system",
551
+ "options": [
552
+ {
553
+ "name": "--firmware-setup",
554
+ "description": "Reboot into UEFI firmware settings"
555
+ }
556
+ ],
557
+ "examples": [
558
+ "systemctl reboot"
559
+ ]
560
+ },
561
+ {
562
+ "name": "poweroff",
563
+ "description": "Power off the system",
564
+ "examples": [
565
+ "systemctl poweroff"
566
+ ]
567
+ },
568
+ {
569
+ "name": "suspend",
570
+ "description": "Suspend the system",
571
+ "examples": [
572
+ "systemctl suspend"
573
+ ]
574
+ },
575
+ {
576
+ "name": "hibernate",
577
+ "description": "Hibernate the system",
578
+ "examples": [
579
+ "systemctl hibernate"
580
+ ]
581
+ },
582
+ {
583
+ "name": "set-property",
584
+ "description": "Set runtime property on a unit",
585
+ "args": [
586
+ {
587
+ "name": "<unit>",
588
+ "type": "string",
589
+ "required": true,
590
+ "description": "Unit name"
591
+ },
592
+ {
593
+ "name": "<property>=<value>",
594
+ "type": "string",
595
+ "required": true,
596
+ "description": "Property to set"
597
+ }
598
+ ],
599
+ "options": [
600
+ {
601
+ "name": "--runtime",
602
+ "description": "Only apply until next reboot"
603
+ }
604
+ ],
605
+ "examples": [
606
+ "systemctl set-property nginx CPUQuota=50%",
607
+ "systemctl set-property nginx MemoryMax=2G",
608
+ "systemctl set-property --runtime nginx CPUWeight=200"
609
+ ]
610
+ }
23
611
  ],
24
612
  "globalOptions": [
25
- { "name": "--help", "short": "-h", "description": "Show help" },
26
- { "name": "--no-pager", "description": "Do not pipe output into pager" },
27
- { "name": "--user", "description": "Operate on user instance" }
613
+ {
614
+ "name": "--help",
615
+ "short": "-h",
616
+ "description": "Show help"
617
+ },
618
+ {
619
+ "name": "--version",
620
+ "description": "Show version"
621
+ },
622
+ {
623
+ "name": "--no-pager",
624
+ "description": "Do not pipe output into pager"
625
+ },
626
+ {
627
+ "name": "--no-legend",
628
+ "description": "Do not print header/footer legend"
629
+ },
630
+ {
631
+ "name": "--no-ask-password",
632
+ "description": "Do not ask for password"
633
+ },
634
+ {
635
+ "name": "--user",
636
+ "description": "Operate on user instance of systemd"
637
+ },
638
+ {
639
+ "name": "--system",
640
+ "description": "Operate on system instance (default)"
641
+ },
642
+ {
643
+ "name": "--host",
644
+ "short": "-H",
645
+ "description": "Operate on remote host",
646
+ "type": "string"
647
+ },
648
+ {
649
+ "name": "--machine",
650
+ "short": "-M",
651
+ "description": "Operate on container",
652
+ "type": "string"
653
+ },
654
+ {
655
+ "name": "--type",
656
+ "short": "-t",
657
+ "description": "Filter by unit type",
658
+ "type": "string"
659
+ },
660
+ {
661
+ "name": "--state",
662
+ "description": "Filter by unit state",
663
+ "type": "string"
664
+ },
665
+ {
666
+ "name": "--plain",
667
+ "description": "Use plain output format"
668
+ },
669
+ {
670
+ "name": "--now",
671
+ "description": "Also start/stop when enabling/disabling"
672
+ },
673
+ {
674
+ "name": "--quiet",
675
+ "short": "-q",
676
+ "description": "Suppress output"
677
+ },
678
+ {
679
+ "name": "--no-block",
680
+ "description": "Don't wait for operation to complete"
681
+ },
682
+ {
683
+ "name": "--no-wall",
684
+ "description": "Don't send wall message before reboot/poweroff"
685
+ },
686
+ {
687
+ "name": "--force",
688
+ "short": "-f",
689
+ "description": "Force the operation"
690
+ },
691
+ {
692
+ "name": "--failed",
693
+ "description": "Show only failed units"
694
+ }
695
+ ],
696
+ "examples": [
697
+ "systemctl start nginx",
698
+ "systemctl stop nginx",
699
+ "systemctl restart nginx",
700
+ "systemctl reload nginx",
701
+ "systemctl reload-or-restart nginx",
702
+ "systemctl status nginx",
703
+ "systemctl status nginx -l --no-pager",
704
+ "systemctl enable --now nginx",
705
+ "systemctl disable nginx",
706
+ "systemctl is-active nginx && echo 'Running'",
707
+ "systemctl is-enabled nginx",
708
+ "systemctl daemon-reload",
709
+ "systemctl list-units --type=service --state=running",
710
+ "systemctl list-units --state=failed",
711
+ "systemctl list-unit-files --type=service --state=enabled",
712
+ "systemctl list-timers --all",
713
+ "systemctl list-sockets",
714
+ "systemctl list-dependencies nginx",
715
+ "systemctl cat nginx",
716
+ "systemctl edit nginx",
717
+ "systemctl edit --full nginx",
718
+ "systemctl show nginx -p MainPID --value",
719
+ "systemctl show nginx -p ActiveState,SubState",
720
+ "systemctl mask nginx",
721
+ "systemctl unmask nginx",
722
+ "systemctl kill -s SIGHUP nginx",
723
+ "systemctl reset-failed",
724
+ "systemctl set-property nginx CPUQuota=50%",
725
+ "systemctl set-property nginx MemoryMax=2G",
726
+ "systemctl get-default",
727
+ "systemctl set-default multi-user.target",
728
+ "systemctl isolate rescue.target",
729
+ "systemctl reboot"
730
+ ],
731
+ "relatedCommands": [
732
+ "journalctl",
733
+ "systemd-analyze",
734
+ "loginctl",
735
+ "timedatectl",
736
+ "hostnamectl",
737
+ "service",
738
+ "init"
28
739
  ],
29
- "examples": ["systemctl start nginx", "systemctl status docker", "systemctl enable --now nginx", "systemctl list-units --type=service --state=running"],
30
- "relatedCommands": ["journalctl", "service", "init", "timedatectl", "hostnamectl"]
31
- }
740
+ "contextEngine": {
741
+ "detectors": [
742
+ {
743
+ "name": "failed_units",
744
+ "description": "List all failed systemd units",
745
+ "command": "systemctl --failed --no-legend --plain 2>/dev/null | head -20",
746
+ "parser": "lines",
747
+ "cacheFor": 10,
748
+ "requiresCmd": "systemctl"
749
+ },
750
+ {
751
+ "name": "running_services",
752
+ "description": "Count of running services",
753
+ "command": "systemctl list-units --type=service --state=running --no-legend --plain 2>/dev/null | wc -l",
754
+ "parser": "text",
755
+ "cacheFor": 15,
756
+ "requiresCmd": "systemctl"
757
+ },
758
+ {
759
+ "name": "active_timers",
760
+ "description": "List active timers with next trigger",
761
+ "command": "systemctl list-timers --no-legend --plain 2>/dev/null | head -10",
762
+ "parser": "lines",
763
+ "cacheFor": 30,
764
+ "requiresCmd": "systemctl"
765
+ },
766
+ {
767
+ "name": "listening_sockets",
768
+ "description": "List listening sockets",
769
+ "command": "systemctl list-sockets --no-legend --plain 2>/dev/null | head -10",
770
+ "parser": "lines",
771
+ "cacheFor": 30,
772
+ "requiresCmd": "systemctl"
773
+ },
774
+ {
775
+ "name": "system_state",
776
+ "description": "Overall system state",
777
+ "command": "systemctl is-system-running 2>/dev/null",
778
+ "parser": "text",
779
+ "cacheFor": 10,
780
+ "requiresCmd": "systemctl"
781
+ },
782
+ {
783
+ "name": "boot_target",
784
+ "description": "Default boot target",
785
+ "command": "systemctl get-default 2>/dev/null",
786
+ "parser": "text",
787
+ "cacheFor": 300,
788
+ "requiresCmd": "systemctl"
789
+ },
790
+ {
791
+ "name": "enabled_services",
792
+ "description": "List enabled services",
793
+ "command": "systemctl list-unit-files --type=service --state=enabled --no-legend --plain 2>/dev/null | awk '{print $1}' | head -30",
794
+ "parser": "lines",
795
+ "cacheFor": 60,
796
+ "requiresCmd": "systemctl"
797
+ },
798
+ {
799
+ "name": "masked_units",
800
+ "description": "List masked units",
801
+ "command": "systemctl list-unit-files --state=masked --no-legend --plain 2>/dev/null | awk '{print $1}' | head -10",
802
+ "parser": "lines",
803
+ "cacheFor": 60,
804
+ "requiresCmd": "systemctl"
805
+ }
806
+ ]
807
+ }
808
+ }