Linux tips: (Basic) Systemd services commands

Linux tips: (Basic) Systemd services commands

// (1a) Display all active Systemd units
# systemctl list-units

or

// (1b) Same as 1(a)
# systemctl


// To start Systemd service
# systemctl start ???????.service

// To stop Systemd service
# systemctl stop ??????.service

// To restart a running Systemd service
# systemctl restart ??????.service


// (2a) To reload config files for a Systemd service
# systemctl reload ??????.service

or 

// (2b) Same functionality as (2a) except it will restart Systemd service as well
# systemctl reload-or-restart ??????.service


// To start Systemd service at boot
# systemctl enable ??????.service

// To stop Systemd service at boot
# systemctl disable ??????.service

// To check on status of Systemd service
# systemctl status ??????.service

// To show dependencies of a Systemd service
# systemctl list-dependencies ??????.service










Comments