mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-14 22:19:55 +00:00
Explaination of some design decisions: * Icon cache folder & tmp folder paths have been changed from default /var/cache/... & /tmp/... respectively so that backing up /var/lib/vaultwarden backs up everything needed minus extra fluff. Also having them at linux standard locations allow users to take advantage of tmpfs on /tmp and other fine tunings. * USE +web pulls in dependency www-apps/vaultwarden-web instead of just downloading tarball conditionally because sometimes only web frontend gets updated but not backend. So it doesn't make sense to recompile backend (rust package which takes ~20 minutes to compile) just to update frontend (*js, *css, *html files) Thanks Fabian Groffen <grobian@gentoo.org> for taking interest & good suggestions Closes: https://github.com/gentoo/gentoo/pull/41864 Signed-off-by: Rahil Bhimjiani <me@rahil.rocks> Signed-off-by: Fabian Groffen <grobian@gentoo.org>
20 lines
599 B
Text
20 lines
599 B
Text
#!/sbin/openrc-run
|
|
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
export ENV_FILE="${CONF_FILE:-/etc/${RC_SVCNAME}/${RC_SVCNAME}.conf}"
|
|
|
|
name="Vaultwarden"
|
|
description="Unofficial Bitwarden compatible password manager"
|
|
command="/usr/bin/${RC_SVCNAME}"
|
|
command_user="${VW_USER:-vaultwarden}:${VW_GROUP:-vaultwarden}"
|
|
command_background="true"
|
|
pidfile="/run/${RC_SVCNAME}.pid"
|
|
output_log="/var/log/${RC_SVCNAME}.log"
|
|
error_log="/var/log/${RC_SVCNAME}.log"
|
|
directory="${DATA_FOLDER:-/var/lib/${RC_SVCNAME}}"
|
|
umask=0027
|
|
|
|
depend() {
|
|
after net
|
|
}
|