services:check_logs_of_a_service
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
services:check_logs_of_a_service [2019/12/04 20:36] – removed peter | services:check_logs_of_a_service [2020/07/23 11:08] (current) – old revision restored (2019/12/04 20:36) 192.99.15.29 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Services - Check logs of a service ====== | ||
+ | ===== Using systemd ===== | ||
+ | |||
+ | In **systemd** logs are stored in an internal binary format (not as text files) so you need to use **journalctl** command to access them: | ||
+ | |||
+ | <code bash> | ||
+ | sudo journalctl -u service_name | ||
+ | sudo journalctl -u service_name -f | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Using Upstart ===== | ||
+ | |||
+ | In **upstart** logs are normal text files in the **/ | ||
+ | |||
+ | <code bash> | ||
+ | cat / | ||
+ | tail -f / | ||
+ | </ |
services/check_logs_of_a_service.1575491809.txt.gz · Last modified: 2020/07/15 09:30 (external edit)