aboutsummaryrefslogtreecommitdiffstats
path: root/www-misc/skein/files/skein-infra.initd
blob: 95febeeb84fd2816ea1bc87eb925530041be9292 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

description="Sets up the chroot environment for cgit"

export SKEIN_CGIT_ROOT="${SKEIN_CGIT_ROOT:-/srv/cgit}"
export SKEIN_GIT_ROOT="${SKEIN_GIT_ROOT:-/srv/git}"

start_pre() {
	checkpath -o root -d "${SKEIN_CGIT_ROOT}"
	checkpath -o root -d "${SKEIN_GIT_ROOT}"
}

start() {
	/usr/sbin/skein-infra setup
}

stop() {
	/usr/sbin/skein-infra teardown
}