PHP 8.5.2
Preview: README.batch.md Size: 928 B
//usr/share/doc/needrestart/README.batch.md

needrestart - batch mode
========================

Needrestart can be run in batch mode:

```console
# needrestart -b
NEEDRESTART-VER: 2.1
NEEDRESTART-KCUR: 3.19.3-tl1+
NEEDRESTART-KEXP: 3.19.3-tl1+
NEEDRESTART-KSTA: 1
NEEDRESTART-SVC: systemd-journald.service
NEEDRESTART-SVC: systemd-machined.service
NEEDRESTART-CONT: LXC web1
NEEDRESTART-SESS: metabase @ user manager service
NEEDRESTART-SESS: root @ session #28017
```

Batch mode can be used to use the results of needrestart in other scripts.
While needrestart is run in batch mode it will never show any UI dialogs
nor restart anything. The output format is compliant with the
*apt-dater protocol*[1].

[1] https://github.com/DE-IBH/apt-dater-host/blob/master/doc/


The kernel status (`NEEDRESTART-KSTA`) value has the following meaning:

- *0*: unknown or failed to detect
- *1*: no pending upgrade
- *2*: ABI compatible upgrade pending
- *3*: version upgrade pending

Directory Contents

Dirs: 1 × Files: 11

Name Size Perms Modified Actions
examples DIR
- drwxr-xr-x 2026-01-08 12:55:51
Edit Download
3.46 KB lrw-r--r-- 2024-12-05 11:53:51
Edit Download
1.05 KB lrw-r--r-- 2024-01-12 09:01:01
Edit Download
1.22 KB lrw-r--r-- 2022-05-17 14:59:22
Edit Download
928 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download
1.16 KB lrw-r--r-- 2022-05-17 14:59:22
Edit Download
2.40 KB lrw-r--r-- 2024-12-05 11:53:51
Edit Download
3.03 KB lrw-r--r-- 2022-05-17 14:59:22
Edit Download
785 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download
687 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download
493 B lrw-r--r-- 2024-10-15 16:06:55
Edit Download
966 B lrw-r--r-- 2022-05-17 14:59:22
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).