Systemd journal.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 24 Dec 2018 01:36:49 +0200
changeset 2315 51097a1f0381
parent 2314 b98ca7669c57
child 2316 7de68fce3e7d
Systemd journal.
systemd.rst
--- a/systemd.rst	Mon Dec 24 01:34:35 2018 +0200
+++ b/systemd.rst	Mon Dec 24 01:36:49 2018 +0200
@@ -22,3 +22,17 @@
   $ sudo systemctl enable  my.service
   $ sudo systemctl disable my.service
 
+Systemd journal
+===============
+
+Get service console output::
+
+  $ journalctl -u repricer-server.service
+
+Like ``tail -n 20``::
+
+  $ journalctl -n 20 ...
+
+Like ``tail -f``::
+
+  $ journalctl -f ...