From fca548ea26425b1ae20cac93c79d46ff60a30aec Mon Sep 17 00:00:00 2001 From: mqus <8398165+mqus@users.noreply.github.com> Date: Sat, 28 Dec 2019 21:32:53 +0100 Subject: [PATCH] Updated Setup as a systemd service (markdown) --- Setup-as-a-systemd-service.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Setup-as-a-systemd-service.md b/Setup-as-a-systemd-service.md index 6651764..ef59f4a 100644 --- a/Setup-as-a-systemd-service.md +++ b/Setup-as-a-systemd-service.md @@ -5,8 +5,28 @@ Making bitwarden_rs start on system startup and use the other facilities of syst [Unit] Description=Bitwarden Server (Rust Edition) Documentation=https://github.com/dani-garcia/bitwarden_rs +# If you use a database like mariadb,mysql or postgresql, +# you have to add them like the following and uncomment them +# by removing the `# ` before it. This makes sure that your +# database server is started before bitwarden_rs ("After") and has +# started successfully before starting bitwarden_rs ("Requires"). + +# Only sqlite After=network.target +# MariaDB +# After=network.target mariadb.service +# Requires=mariadb.service + +# Mysql +# After=network.target mysqld.service +# Requires=mysqld.service + +# PostgreSQL +# After=network.target postgresql.service +# Requires=postgresql.service + + [Service] # The user/group bitwarden_rs is run under. the working directory (see below) should allow write and read access to this user/group User=bitwarden_rs