My setup has Umbrel 0.4.0 running on a Debian host, on a proxmox VM.
I wanted Umbrel to start whenever my computer boots (power outages, crashes etc.) and to ensure that Umbrel is started/shutdown with the correct scripts.
First shutdown Umbrel:
sudo ./[umbrel directory here]/scripts/stop
Create a file for umbrel.service for Umbrel in your host:
sudo nano /etc/systemd/system/umbrel.service
Add this text to the file:
Save the file (ctrl-x, y, return)
Start the service to check if it worked or not:
sudo systemctl start umbrel.service
sudo systemctl status umbrel.service
Cofirm the service successfully started by logging into Umbrel like you usually would
If everything is good, add the newly created service to systemd so it starts automatically
sudo systemctl enable umbrel.service
And that’s pretty much it, hope this helps!