summaryrefslogtreecommitdiff
path: root/app-admin/vaultwarden/files/init
blob: 66fd2ea62419d90345dd93e27d7cd0aba8d19094 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

command="/var/lib/vaultwarden/vaultwarden"
pidfile="/run/vaultwarden.pid"
description="Unofficial Vaultwarden compatible server written in Rust"
start_stop_daemon_args="--env VAULTWARDEN_CONFIG=$VAULTWARDEN_CONFIG --user ${VAULTWARDEN_USER} --group ${VAULTWARDEN_GROUP} --pidfile ${pidfile} --make-pidfile --background"

depend() {
	need net
	use mysql postgresql
}