summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-09-03 20:11:27 +0000
committerPacho Ramos <pacho@gentoo.org>2013-09-03 20:11:27 +0000
commit69fffd0912e156c0a91564004c46fe235ae90cdf (patch)
treec75acfafc81130cea4a9e46775c9888ee132b7e2 /net-ftp/vsftpd/files
parentRestore RDEPENDs and prefix support. (diff)
downloadgentoo-2-69fffd0912e156c0a91564004c46fe235ae90cdf.tar.gz
gentoo-2-69fffd0912e156c0a91564004c46fe235ae90cdf.tar.bz2
gentoo-2-69fffd0912e156c0a91564004c46fe235ae90cdf.zip
Add support for socket activation (#483270 by Henry Gebhardt and Alexander Tsoy)
(Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-ftp/vsftpd/files')
-rw-r--r--net-ftp/vsftpd/files/vsftpd.socket9
-rw-r--r--net-ftp/vsftpd/files/vsftpd_at.service10
2 files changed, 19 insertions, 0 deletions
diff --git a/net-ftp/vsftpd/files/vsftpd.socket b/net-ftp/vsftpd/files/vsftpd.socket
new file mode 100644
index 000000000000..cdc0d337efeb
--- /dev/null
+++ b/net-ftp/vsftpd/files/vsftpd.socket
@@ -0,0 +1,9 @@
+[Unit]
+Conflicts=vsftpd.service
+
+[Socket]
+ListenStream=21
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
diff --git a/net-ftp/vsftpd/files/vsftpd_at.service b/net-ftp/vsftpd/files/vsftpd_at.service
new file mode 100644
index 000000000000..5380b83ffcfe
--- /dev/null
+++ b/net-ftp/vsftpd/files/vsftpd_at.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Very Secure FTP Daemon
+
+[Service]
+Type=simple
+# Note: Do not use ExecStartPre=/usr/libexec/vsftpd-checkconfig.sh, as it
+# requires one of the listen options to be enabled.
+ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf -obackground=NO -olisten=NO -olisten_ipv6=NO
+StandardInput=socket
+SuccessExitStatus=2