This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision |
home_server:home_server_setup:other_services:systemd [2021-03-01 Mon wk09 22:28] – [Journalctl stuff] baumkp | home_server:home_server_setup:other_services:systemd [2023-12-26 Tue wk52 11:39] (current) – baumkp |
---|
| {{tag>systemd systemctl timer timers journalctl linux debian setup customise customisation}} |
======systemd Stuff====== | ======systemd Stuff====== |
* [[https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux|How to create systemd service unit in Linux]] | * [[https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux|How to create systemd service unit in Linux]] |
*''sudo journalctl -u pppoe'', use u flag to see specified unit files only. | *''sudo journalctl -u pppoe'', use u flag to see specified unit files only. |
*''sudo journalctl -k'' to see kernel messages only | *''sudo journalctl -k'' to see kernel messages only |
*''sudo journalctl -p 3'' to see only specified error level messages and more severe. | *''sudo journalctl -p 3'' to see only specified error priority messages and more severe. |
* 0: emerg | * 0: emerg |
* 1: alert | * 1: alert |
* 6: info | * 6: info |
* 7: debug | * 7: debug |
| * ''-r'' flag is used to show in reverse chronological order. |
some links:\\ | some links:\\ |
[[https://www.linode.com/docs/guides/how-to-use-journalctl/|Use journalctl to View Your System's Logs]] | [[https://www.linode.com/docs/guides/how-to-use-journalctl/|Use journalctl to View Your System's Logs]] |