SeanIFitch / Icarus_v2

Monitoring software for the Icarus NMR pressure jump apparatus
MIT License
0 stars 0 forks source link

Launch on startup #66

Closed SeanIFitch closed 1 month ago

SeanIFitch commented 2 months ago

For ubuntu: Create a systemd Service File:

Create a new file in /etc/systemd/system/, for example myapp.service, with the following content (edit paths and names accordingly):

[Unit] Description=Start My Python App at boot

[Service] ExecStart=/usr/bin/python3 /path/to/your/script.py

[Install] WantedBy=multi-user.target Enable the Service:

Run sudo systemctl enable myapp.service to enable the service. Optionally, start it immediately with sudo systemctl start myapp.service.