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

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