summaryrefslogtreecommitdiff
path: root/net-ftp/pure-ftpd/files/pure-ftpd.initd-r12
blob: c971125784b7cde06925970571cb6096897d439d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

ftpd_configfile="/etc/${SVCNAME}.conf"
pidfile="/run/pure-ftpd.pid"

command="/usr/sbin/pure-ftpd"
command_args="${ftpd_configfile}"
command_background="true"

depend() {
	need localmount
	use netmount
}

start_pre() {
	if [ ! -f "${ftpd_configfile}" ] ; then
		eerror "The file ${ftpd_configfile} does not exist!"
		eerror "Please create and configure the configuration file."
		return 1
	fi
}