change formatting

input examples are now given as

```bash
input $ARG1
```

While outputs use md's '> ' sign as a quote.
This commit is contained in:
2023-06-17 21:28:20 +02:00
parent 1ba3010b81
commit ba8026e0c3
102 changed files with 2388 additions and 3211 deletions

View File

@@ -2,11 +2,15 @@
title: "journal"
tags: [ "Documentation", "systemd" ]
---
```
Find errors since November
> journalctl --since=2018-11-01 --grep="EXT4-fs error"
```bash
journalctl --since=2018-11-01 --grep="EXT4-fs error"
```
Limit size to 2G.
> journalctl --vacuum-size=2G
```bash
journalctl --vacuum-size=2G

View File

@@ -26,13 +26,12 @@ WantedBy=multi-user.target
After making the new service, systemd requires reloading:
> sudo systemctl daemon-reload
```bash
sudo systemctl daemon-reload
```
# Types
* simple - the service cannot be called on by others. It runs on repeat.
* oneshot - the service executes once, then stops.

View File

@@ -2,19 +2,33 @@
title: "systemd"
tags: [ "Documentation", "systemd" ]
---
> systemctl list-units
```bash
systemctl list-units
```
> sudo systemctl status mpd
```bash
sudo systemctl status mpd
```
> sudo systemctl daemon-reload
```bash
sudo systemctl daemon-reload
```
> sudo systemctl taskd.service start
```bash
sudo systemctl taskd.service start
```
> sudo systemctl status taskd.service
```bash
sudo systemctl status taskd.service
```
# Startup
> sudo systemd-analyze
```bash
sudo systemd-analyze
```
> sudo systemd-analyze blame
```bash
sudo systemd-analyze blame
```