33 lines
693 B
SYSTEMD
33 lines
693 B
SYSTEMD
|
[Unit]
|
||
|
Description=vaultwarden Server (Rust Edition)
|
||
|
Documentation=https://github.com/dani-garcia/vaultwarden
|
||
|
|
||
|
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]
|
||
|
User=vaultwarden
|
||
|
Group=vaultwarden
|
||
|
EnvironmentFile=/etc/default/vaultwarden
|
||
|
ExecStart=/usr/lib/vaultwarden/vaultwarden
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
ProtectHome=true
|
||
|
ProtectSystem=strict
|
||
|
WorkingDirectory=/var/lib//vaultwarden/
|
||
|
ReadWriteDirectories=/var/lib/vaultwarden/
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|