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