Blame SOURCES/vsftpd-2.3.4-sd.patch

d83721
diff -up vsftpd-3.0.2/vsftpd.8.sd vsftpd-3.0.2/vsftpd.8
d83721
--- vsftpd-3.0.2/vsftpd.8.sd	2013-09-04 13:04:40.383348837 +0200
d83721
+++ vsftpd-3.0.2/vsftpd.8	2013-09-04 13:45:00.370277842 +0200
d83721
@@ -25,6 +25,23 @@ in
d83721
 Direct execution of the
d83721
 .Nm vsftpd
d83721
 binary will then launch the FTP service ready for immediate client connections.
d83721
+.Pp
d83721
+Systemd changes the vsftpd daemon start-up. The vsftpd package contains vsftpd-generator script generating symbolic links to /var/run/systemd/generator/vsftpd.target.wants directory. The generator is called during e.g. 'systemctl --system daemon-reload'. All these symbolic links link /usr/lib/systemd/system/vsftpd@.service file.
d83721
+The vsftpd daemon(s) is/are controlled by one of following ways:
d83721
+.Pp
d83721
+1. Single daemon using default /etc/vsftpd/vsftpd.conf configuration file
d83721
+.br
d83721
+# systemctl {start,stop,...} vsftpd[.service]
d83721
+.Pp
d83721
+2. Single daemon using /etc/vsftpd/<conf-name>.conf
d83721
+.br
d83721
+# systemctl {start,stop,...} vsftpd@<conf-name>[.service]
d83721
+.Pp
d83721
+3. All instances together
d83721
+.br
d83721
+# systemctl {restart,stop} vsftpd.target
d83721
+.Pp
d83721
+See systemd.unit(5), systemd.target(5) for further details.
d83721
 .Sh OPTIONS
d83721
 An optional
d83721
 configuration file or files
d83721
@@ -55,6 +72,13 @@ the "ftpd_banner" setting is set to "bla
d83721
 setting and any identical setting that was in the config file.
d83721
 .Sh FILES
d83721
 .Pa /etc/vsftpd/vsftpd.conf
d83721
+.Pp
d83721
+.Pa /usr/lib/systemd/system/vsftpd.service
d83721
+.Pp
d83721
+.Pa /usr/lib/systemd/system/vsftpd@.service
d83721
+.Pp
d83721
+.Pa /usr/lib/systemd/system/vsftpd.target
d83721
 .Sh SEE ALSO
d83721
 .Xr vsftpd.conf 5
d83721
+.Xr systemd.unit 5
d83721
 .end
d83721
diff -up vsftpd-3.0.2/vsftpd.conf.5.sd vsftpd-3.0.2/vsftpd.conf.5
d83721
--- vsftpd-3.0.2/vsftpd.conf.5.sd	2013-09-04 13:04:40.391348915 +0200
d83721
+++ vsftpd-3.0.2/vsftpd.conf.5	2013-09-04 13:44:57.573250302 +0200
d83721
@@ -12,7 +12,23 @@ inetd such as
d83721
 .BR xinetd
d83721
 to launch vsftpd with different configuration files on a per virtual host
d83721
 basis.
d83721
-
d83721
+.P
d83721
+Systemd changes the vsftpd daemon start-up. The vsftpd package contains vsftpd-generator script generating symbolic links to /var/run/systemd/generator/vsftpd.target.wants directory. The generator is called during e. g. 'systemctl --system daemon-reload'. All these symbolic links link /usr/lib/systemd/system/vsftpd@.service file.
d83721
+The vsftpd daemon(s) is/are controlled by one of following ways:
d83721
+.P
d83721
+1. Single daemon using default /etc/vsftpd/vsftpd.conf configuration file
d83721
+.br
d83721
+# systemctl {start,stop,...} vsftpd[.service]
d83721
+.P
d83721
+2. Single daemon using /etc/vsftpd/<config-filename>.conf
d83721
+.br
d83721
+# systemctl {start,stop,...} vsftpd@<config-filename-without-extension>[.service]
d83721
+.P
d83721
+3. All instances together
d83721
+.br
d83721
+# systemctl {restart,stop} vsftpd.target
d83721
+.P
d83721
+See systemd.unit(5), systemd.target(5) for further details.
d83721
 .SH FORMAT
d83721
 The format of vsftpd.conf is very simple. Each line is either a comment or
d83721
 a directive. Comment lines start with a # and are ignored. A directive line