#! /bin/sh
### BEGIN INIT INFO
# Provides:          sftpgo-chroot
# Required-Start:    $syslog $network
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: SFTPgo Service
# Description:       SFTPgo Service in chroot
### END INIT INFO

# 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="SFTPgo Service (chroot)"
NAME=sftpgo
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/sftpgo-chroot
DAEMON=sftpgo

CHRDIR=/chroot/sftpd
CHRBIN=/usr/sbin/chroot

# 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
