systemd Services Creating a New Service If you want an application to be able to run at start up. Create your service file nano /etc/systemd/system/.service Add the following information to the file with updated application info. Depending on the service you might not need specific environment variables or a working directory. [Unit] Description=Start service After=network.target [Service] Type=simple User= WorkingDirectory= Environment="FOO=foo" ExecStart=binary Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target After saving your entry you can run the following commands sudo systemctl daemon-reload sudo systemctl enable .service sudo systemctl start .service sudo systemctl status .service Further Reading https://www.baeldung.com/linux/systemd-services-environment-variables