Autostart Bitwarden on Boot

Hi,

This seems to be working, but I’m confused why … LOL. I have a self-hosted install on Linux, and it does seem to start up on boot. That’s great, but everything I find seems to say it won’t … or has this been changed recently. Is it a setting somewhere?

I’m happy it’s working, just want to understand … :smile:

Thanks!

I think it was added in this commit, could be wrong https://github.com/bitwarden/server/commit/f97539d558b97f98d45fe4306546d0fa4a1605fe#diff-9e00246e173495710e76e07474eadbfcR124

OK, so Docker itself restarts, as part of reboot … correct?

Thanks!

This took me a while to understand but yes Start containers automatically | Docker Docs notes that restart: always will automatically start the containers up. I’ve found that if I start Bitwarden and shut down the host and later boot it up, Bitwarden comes back online automatically. No systemd file, no cron job, no rc.local command. As long as Docker starts at boot, Bitwarden should also come back online