As expample, PostgreSQL installation of version
11 with cluster
main is being used. Replace
postgresql@11-main accordingly. Many services might not have clusters or even parallel versions, e.g. the ssh daemon.
Start service
sudo systemctl start postgresql@11-main
Stop service
sudo systemctl stop postgresql@11-main
Reload configuration of service
sudo systemctl reload postgresql@11-main
Restart service
sudo systemctl restart postgresql@11-main
Query status
sudo systemctl status postgresql@11-main
Make services start at boot
sudo systemctl enable postgresql@11-main
Release services from starting at boot
sudo systemctl disable postgresql@11-main
View log
If the viewing user is not in the group
adm or
systemd-journal, one neeeds to sudo. See also
https://linuxhandbook.com/journalctl-command/journalctl -u postgresql@11-main.service # to see the log entries of the PostgreSQL 11 main cluster
journalctl --follow --unit=ssh.service # to keep tracing the log entries of the ssh daemon
No comments:
Post a Comment