1
0
mirror of https://github.com/bitwarden/help synced 2025-12-12 14:23:15 +00:00
This commit is contained in:
fred_the_tech_writer
2020-12-17 15:37:12 -05:00
committed by GitHub
parent c3a06b2cd3
commit db1e64ab1d

View File

@@ -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? #### 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: 1. Create a Bitwarden service file:
``` ```
sudo vi bitwarden.service [Unit] Description=Bitwarden Requires=docker.service sudo vi bitwarden.service
After=docker.service [Service] Type=oneshot User=bitwarden Group=bitwarden
[Unit]
Description=Bitwarden
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
User=bitwarden
Group=bitwarden
ExecStart=<your-install-directory>/bitwarden.sh start RemainAfterExit=true ExecStart=<your-install-directory>/bitwarden.sh start RemainAfterExit=true
ExecStop=<your-install0durectory>/bitwarden.sh stop [Install] ExecStop=<your-install0durectory>/bitwarden.sh stop
[Install]
WantedBy=multi-user.target WantedBy=multi-user.target
``` ```
2. Copy the Bitwarden service file to systemd: 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 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 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 sudo systemctl enable bitwarden.service