View systemctl service file

To view the content of a systemd service file, run the command Example boby@sok-01:~$ systemctl cat nginx # /lib/systemd/system/nginx.service #

Enable rc.local

Enable rc.local

To enable /etc/rc.local file run on system startup on servers runing systemd, you can run Now you need to create

Systemctl Start a Service on Boot

Systemctl Start a Service on Boot

To enable a service on boot, run To disable a service from starting on boot, run See systemctl

How to check if systemctl service is enabled

How to check if systemctl service is enabled

To check if a systemctl service is enabled, run Example You can enable the service, so it run at boot

systemctl

systemctl

Systemctl Start a Service on Boot How to check if systemctl service is enabled Run a script on boot using