changeset 2315:51097a1f0381

Systemd journal.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Mon, 24 Dec 2018 01:36:49 +0200
parents b98ca7669c57
children 7de68fce3e7d
files systemd.rst
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ...