From db1e64ab1d63baccf915227edff5fdd245e889cd Mon Sep 17 00:00:00 2001 From: fred_the_tech_writer <69817454+fschillingeriv@users.noreply.github.com> Date: Thu, 17 Dec 2020 15:37:12 -0500 Subject: [PATCH] faq fix (#328) --- _articles/faqs/hosting-faqs.md | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/_articles/faqs/hosting-faqs.md b/_articles/faqs/hosting-faqs.md index 0f593ba0..f912b7d9 100644 --- a/_articles/faqs/hosting-faqs.md +++ b/_articles/faqs/hosting-faqs.md @@ -82,23 +82,36 @@ Check that the custom port values have been proliferated to `./bwdata/env/global #### Q: How do I add Bitwarden to system boot? -**A:** Complete the following steps: +**A:** Before adding Bitwarden to system boot, complete [Docker Post-Installation](https://bitwarden.com/help/hosting-faqs/#docker-post-installation) to setup a dedicated `bitwarden` service account. + +Then, complete the following steps: 1. Create a Bitwarden service file: ``` - sudo vi bitwarden.service [Unit] Description=Bitwarden Requires=docker.service - After=docker.service [Service] Type=oneshot User=bitwarden Group=bitwarden + sudo vi bitwarden.service + + [Unit] + Description=Bitwarden + Requires=docker.service + After=docker.service + + [Service] + Type=oneshot + User=bitwarden + Group=bitwarden ExecStart=/bitwarden.sh start RemainAfterExit=true - ExecStop=/bitwarden.sh stop [Install] + ExecStop=/bitwarden.sh stop + + [Install] WantedBy=multi-user.target ``` 2. Copy the Bitwarden service file to systemd: ``` - sudo cp bitwarden.service /etc/systemmd/system/bitwarden.service + sudo cp bitwarden.service /etc/systemd/system/bitwarden.service ``` -3. Set permission on the Bitwarden service file under systemd: +3. Set permissions on the Bitwarden service file under systemd: ``` sudo chmod 644 /etc/systemd/system/bitwarden.service @@ -108,7 +121,7 @@ Check that the custom port values have been proliferated to `./bwdata/env/global ``` systemctl daemon-reload ``` -5. Enable `bitwarden.service` in the system boot: +5. Add the service to start with system boot: ``` sudo systemctl enable bitwarden.service