/ linux

SystemD magic

Basic operations:

systemctl start|stop|restart|status nginx.service

Enable|disable a service to be included after boot:

systemctl enable|disable nginx.service

Check whether a service is enabled on bootup:

systemctl is-enabled nginx.service; echo $?

List all running services:

systemctl