aboutsummaryrefslogblamecommitdiffstats
path: root/www-misc/skein/files/cgit-chroot.initd
blob: bdbc5fb81214e729cea0e19348bc37256b002a6f (plain) (tree)




















                                                                  
#!/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 CGIT_CHROOT="${CGIT_CHROOT:-/srv/cgit}"
export CGIT_GIT_ROOT="${CGIT_GIT_ROOT:-/srv/git}"

start_pre() {
	checkpath -o root -d "${CGIT_CHROOT}"
	checkpath -o root -d "${CGIT_GIT_ROOT}"
}

start() {
	/usr/libexec/skein/cgit-chroot setup
}

stop() {
	/usr/libexec/skein/cgit-chroot teardown
}