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:
@@ -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
|
||||
|
@@ -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.
|
||||
|
||||
|
||||
|
||||
|
@@ -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
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user