File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,26 @@ pip install --user glances
11
11
12
12
## Logging
13
13
14
- ### Gets the log output of a service.
14
+ ### Gets the log output of a service ###
15
15
16
16
` journalctl -u price-server.service -f `
17
17
18
18
Note that if the service is running at a "system" level, there may be a need to use ` sudo ` with the command.
19
19
20
- ### Lists the logs since a specific time.
20
+ ### List the logs since a specific time ###
21
21
22
22
` journalctl -u feeder.service --since "2021-12-09 20:00:00" `
23
23
24
24
` journalctl -S "4 hour ago" `
25
25
26
+ ### List the logs until a specific time ###
27
+
28
+ ` journalctl --until "2022-02-24 01:23:00 `
29
+
30
+ ### List the logs only from the current boot ###
31
+
32
+ ` journalctl -u service-name.service -b `
33
+
26
34
## Service Management
27
35
28
36
### Auto-start
You can’t perform that action at this time.
0 commit comments