Creating a Service File

sudo nano /usr/lib/systemd/system/xx_net.service
Copy the code

[Unit]

Description=xx_net

[Service]

Type=oneshot

ExecStart=/home/pi/Desktop/XX-Net/start

[Install]

WantedBy=multi-user.target

Copy the code

Specify that the service starts automatically

sudo systemctl enable xx_net.service
Copy the code