summaryrefslogtreecommitdiff
path: root/nonsystemd/vsftpd-openrc/vsftpd.initd
blob: 4010d7427f04a28e5e0e9a05a17e81d6555929be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2

VSFTPD_NAME=${SVCNAME##*.}
VSFTPD_PID="/run/vsftpd.pid"
VSFTPD_CONF_DEFAULT="/etc/vsftpd.conf"
VSFTPD_CONF=${VSFTPD_CONF:-${VSFTPD_CONF_DEFAULT}}
VSFTPD_EXEC=${VSFTPD_EXEC:-/usr/bin/vsftpd}

supervisor=supervise-daemon
pidfile="${VSFTPD_PID}"
command=vsftpd
command_args="${VSFTPD_CONF}"

depend() {
	need net
	use dns logger
}

start_pre() {
	VSFTPD_CONF="${VSFTPD_CONF}" \
		/usr/lib/vsftpd-checkconfig.sh || return 1
}