Blame SOURCES/0013-Extend-man-pages-with-systemd-info.patch

f22e83
From 813a4bc45d45f4af94c699893cb2d2ba998d5d31 Mon Sep 17 00:00:00 2001
f22e83
From: Martin Sehnoutka <msehnout@redhat.com>
f22e83
Date: Wed, 7 Sep 2016 11:53:07 +0200
f22e83
Subject: [PATCH 13/59] Extend man pages with systemd info.
f22e83
f22e83
Man pages now reflect how is vsftpd used as
f22e83
systemd service.
f22e83
---
f22e83
 vsftpd.8      | 24 ++++++++++++++++++++++++
f22e83
 vsftpd.conf.5 | 18 +++++++++++++++++-
f22e83
 2 files changed, 41 insertions(+), 1 deletion(-)
f22e83
f22e83
diff --git a/vsftpd.8 b/vsftpd.8
f22e83
index c920e7d..fbeb1a2 100644
f22e83
--- a/vsftpd.8
f22e83
+++ b/vsftpd.8
f22e83
@@ -25,6 +25,23 @@ in
f22e83
 Direct execution of the
f22e83
 .Nm vsftpd
f22e83
 binary will then launch the FTP service ready for immediate client connections.
f22e83
+.Pp
f22e83
+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.
f22e83
+The vsftpd daemon(s) is/are controlled by one of following ways:
f22e83
+.Pp
f22e83
+1. Single daemon using default /etc/vsftpd/vsftpd.conf configuration file
f22e83
+.br
f22e83
+# systemctl {start,stop,...} vsftpd[.service]
f22e83
+.Pp
f22e83
+2. Single daemon using /etc/vsftpd/<conf-name>.conf
f22e83
+.br
f22e83
+# systemctl {start,stop,...} vsftpd@<conf-name>[.service]
f22e83
+.Pp
f22e83
+3. All instances together
f22e83
+.br
f22e83
+# systemctl {restart,stop} vsftpd.target
f22e83
+.Pp
f22e83
+See systemd.unit(5), systemd.target(5) for further details.
f22e83
 .Sh OPTIONS
f22e83
 An optional
f22e83
 configuration file or files
f22e83
@@ -55,6 +72,13 @@ the "ftpd_banner" setting is set to "blah", which overrides any default vsftpd
f22e83
 setting and any identical setting that was in the config file.
f22e83
 .Sh FILES
f22e83
 .Pa /etc/vsftpd/vsftpd.conf
f22e83
+.Pp
f22e83
+.Pa /usr/lib/systemd/system/vsftpd.service
f22e83
+.Pp
f22e83
+.Pa /usr/lib/systemd/system/vsftpd@.service
f22e83
+.Pp
f22e83
+.Pa /usr/lib/systemd/system/vsftpd.target
f22e83
 .Sh SEE ALSO
f22e83
 .Xr vsftpd.conf 5
f22e83
+.Xr systemd.unit 5
f22e83
 .end
f22e83
diff --git a/vsftpd.conf.5 b/vsftpd.conf.5
f22e83
index 9d767b1..0744f85 100644
f22e83
--- a/vsftpd.conf.5
f22e83
+++ b/vsftpd.conf.5
f22e83
@@ -12,7 +12,23 @@ inetd such as
f22e83
 .BR xinetd
f22e83
 to launch vsftpd with different configuration files on a per virtual host
f22e83
 basis.
f22e83
-
f22e83
+.P
f22e83
+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.
f22e83
+The vsftpd daemon(s) is/are controlled by one of following ways:
f22e83
+.P
f22e83
+1. Single daemon using default /etc/vsftpd/vsftpd.conf configuration file
f22e83
+.br
f22e83
+# systemctl {start,stop,...} vsftpd[.service]
f22e83
+.P
f22e83
+2. Single daemon using /etc/vsftpd/<config-filename>.conf
f22e83
+.br
f22e83
+# systemctl {start,stop,...} vsftpd@<config-filename-without-extension>[.service]
f22e83
+.P
f22e83
+3. All instances together
f22e83
+.br
f22e83
+# systemctl {restart,stop} vsftpd.target
f22e83
+.P
f22e83
+See systemd.unit(5), systemd.target(5) for further details.
f22e83
 .SH FORMAT
f22e83
 The format of vsftpd.conf is very simple. Each line is either a comment or
f22e83
 a directive. Comment lines start with a # and are ignored. A directive line
f22e83
-- 
f22e83
2.14.4
f22e83