summaryrefslogtreecommitdiff
path: root/net-ftp/vsftpd/files/vsftpd.init-3.0.5
blob: cc9ad7f4a8030129250d7ceb37141887e43e6e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License, v2

instance=${RC_SVCNAME#*.}

: ${command=/usr/sbin/vsftpd}
command_background=true

if [ "${instance}" = "${RC_SVCNAME}" ]; then
	: ${pidfile=/run/vsftpd.pid}
else
	: ${command_args=/etc/vsftpd/${instance}.conf}
	: ${pidfile=/run/vsftpd.${instance}.pid}
fi

depend() {
	use dns logger net
}