#! /bin/sh
### BEGIN INIT INFO
# Provides:          forgejo-chroot
# Required-Start:    $syslog $network
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: A self-hosted Git service.
# Description:       A self-hosted Git service.
### END INIT INFO

# Author: Danny Boisvert

# Do NOT "set -e"

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Forgejo Service (chroot)"
NAME=forgejo
SERVICEVERBOSE=yes
SCRIPTNAME=/etc/init.d/forgejo-chroot
WORKINGDIR=/var/lib/forgejo
USER=forgejo

CHRDIR=/chroot/git
CHRBIN=/usr/sbin/chroot

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.2-14) to ensure that this file is present
# and status_of_proc is working.
. /lib/lsb/init-functions
