Systemd: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
Line 3: Line 3:


     systemctl start|stop|restart|status service
     systemctl start|stop|restart|status service
To find out if a service is enabled / will start up at boot
    systemctl is-enabled service
To enable|disable it at boot
    systemctl enable|disable service


= logs =
= logs =
     journalctl -u service
     journalctl -u service

Revision as of 14:50, 12 April 2019

services

You can use the service or systemctl commands to work with these. Apparently systemctl is more direct and service is a wrapper script.

   systemctl start|stop|restart|status service

To find out if a service is enabled / will start up at boot

   systemctl is-enabled service

To enable|disable it at boot

   systemctl enable|disable service

logs

   journalctl -u service