summaryrefslogtreecommitdiff
path: root/net-ftp/vsftpd/files/vsftpd.init-3.0.5
diff options
context:
space:
mode:
Diffstat (limited to 'net-ftp/vsftpd/files/vsftpd.init-3.0.5')
-rw-r--r--net-ftp/vsftpd/files/vsftpd.init-3.0.519
1 files changed, 19 insertions, 0 deletions
diff --git a/net-ftp/vsftpd/files/vsftpd.init-3.0.5 b/net-ftp/vsftpd/files/vsftpd.init-3.0.5
new file mode 100644
index 000000000000..cc9ad7f4a803
--- /dev/null
+++ b/net-ftp/vsftpd/files/vsftpd.init-3.0.5
@@ -0,0 +1,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
+}