Sorry if this is a basic question, i'm not all that great in Linux but i'm learning. Is there a way to have SparkBox auto-start when my Ubuntu server is started? I am currently running it in Ubuntu Server 26.04 which is a VM inside of Proxmox. I have the VM auto-starting but it would be nice if SparkBox could do the same, Thanks in advance, and thank you for SparkBox, I have really been enjoying it and love how you've made it an entire eco-system of apps that can take quite some time to manually install and get running correctly when done on their own, so cheers for that!!
4 replies
tomspark wrote:
Good news, SparkBox already does this on Ubuntu. The installer sets the containers to auto-start whenever Docker comes up at boot, so when your Proxmox VM boots, SparkBox boots with it. Nothing extra to set up. To confirm after your next reboot, log in to the VM and run: sudo docker ps If you see the sb- containers running, you're set. If something didn't come back, sudo sparkbox up will bring it up and it'll stick on future boots. Glad you're enjoying it, thanks for the kind words.
BadBunny wrote:
Thanks for your reply. I think I understand what my problem was, whenever I wanted to reboot or shutdown the VM I had been shutting down SparkBox with sudo sparkbox down, I thought it would need to be shutdown to prevent corruption. I just did a quick shutdown and restart of the VM without shutting down SparkBox and it started up on it's own. Thanks for your help, much appreciated :)
tomspark wrote:
Glad you sorted it. Yeah, no need to run sparkbox down before a reboot — Docker handles the clean stop when the VM shuts down, and the containers come back up the same way next boot. Have fun with it.
tomspark wrote:
Not a basic question at all — and good news, it already does this! SparkBox's apps are set to restart themselves, and Docker (the engine they run on) starts automatically when Ubuntu boots. So once your VM powers on, SparkBox comes back up on its own, no action needed. If you want to be 100% sure Docker is set to start on boot, run this once: sudo systemctl enable docker Then reboot the VM to test — everything should come right back. And thanks for the kind words, really glad you're enjoying it!