This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. {{tag>systemd systemctl timer timers journalctl linux debian setup customise customisation}} ======systemd Stuff====== * [[https://linuxconfig.org/how-to-create-systemd-service-unit-in-linux|How to create systemd service unit in Linux]] * [[https://unix.stackexchange.com/questions/246935/set-systemd-service-to-execute-after-fstab-mount|Set systemd service to execute after fstab mount]] * DigitalOcean Tutorials systemd: * [[https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units|How To Use Systemctl to Manage Systemd Services and Units]] * [[https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files|Understanding Systemd Units and Unit Files]] * [[https://www.digitalocean.com/community/tutorials/how-to-use-journalctl-to-view-and-manipulate-systemd-logs|How To Use Journalctl to View and Manipulate Systemd Logs]] * [[https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal|Systemd Essentials: Working with Services, Units, and the Journal]] * [[https://cloudnull.io/2017/05/nfs-mount-via-systemd/|NFS mount via systemd]] * [[https://www.golinuxcloud.com/start-systemd-service-after-nfs-mount/|How to start systemd service after NFS mount in Linux]] [[https://www.tecmint.com/systemd-analyze-monitor-linux-bootup-performance/|systemd-analyze – Find System Boot-up Performance Statistics in Linux]] =====Journalctl stuff===== ''man journald.conf'' manual page for journald.conf\\ ''man journalctl'' manual page for journalctl\\ Edit ''sudo vim /etc/systemd/journald.conf'' make variable ''Storage=persistent'' to make journald store the journal files in ''/var/log/journal'', this will create directory if necessary. This also ensure log files are available from previous boots.\\ \\ ''sudo systemctl force-reload systemd-journald'' to reload journald or restart instead ''sudo journalctl -u systemd-journald'' to check status of journal.\\ \\ some useful flag and inputs: *''sudo journalctl -b'' to see current boot journal only use ''-b -1'' to see last boot entries. *''journalctl --list-boots'' to list all available journaled boots. *''sudo journalctl -u pppoe'', use u flag to see specified unit files only. *''sudo journalctl -k'' to see kernel messages only *''sudo journalctl -p 3'' to see only specified error priority messages and more severe. * 0: emerg * 1: alert * 2: crit * 3: err * 4: warning * 5: notice * 6: info * 7: debug * ''-r'' flag is used to show in reverse chronological order. some links:\\ [[https://www.linode.com/docs/guides/how-to-use-journalctl/|Use journalctl to View Your System's Logs]] =====systemd timers==== ''timedatectl'' to print current time date on cli\\ ''Date'' to print basic time date only on cli\\ ''timedatectl list-timezones'' to set available time zones\\ ''sudo timedatectl set-timezone australia/perth'' to set timezone\\ Some links: *Arch Linux [[https://wiki.archlinux.org/index.php/Systemd/Timers|systemd/Timers]] *Putorius [[https://www.putorius.net/using-systemd-timers.html|Using systemd Timer Units to Schedule Jobs ]] *Linux.com [[https://www.linux.com/tutorials/systemd-timers-two-use-cases-0/|Systemd Timers: Three Use Cases]] *Freedesktop.org [[https://www.freedesktop.org/software/systemd/man/systemd.time.html|systemd.time — Time and date specifications]] and [[https://www.freedesktop.org/software/systemd/man/systemd.timer.html|systemd.timer — Timer unit configuration]] ---- <- home_server:home_server_setup:other_services:vim|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:symlinks|Next ->