Nguyễn Trọng Tân
New member
How do I add a service to startup in Linux?
Answer
How to run a Linux Program on Startup
Answer
How to run a Linux Program on Startup
- Run this command sudo nano /etc/systemd/system/YOUR_SERVICE_NAME.service.
- Paste in the command below. …
- Reload services sudo systemctl daemon-reload.
- Enable the service sudo systemctl enable YOUR_SERVICE_NAME.
- Start the service sudo systemctl start YOUR_SERVICE_NAME.