3 ways to create a startup script in Ubuntu
Method 1 (most reliable): Create a systemd startup service Create a systemd unit file with .service extension in /etc/systemd/system, for example /etc/systemd/system/my-service.service, with the following content. Lines starting with # can be truncated. Hence, the above unit file is equivalent to: You can now start/stop this service with systemctl start my-service / systemctl stop my-service.To […]