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

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