git: dbde991014 - main - Replace named with sshd in an example
Mateusz Piotrowski
0mp at FreeBSD.org
Mon Apr 19 10:08:22 UTC 2021
The branch main has been updated by 0mp:
URL: https://cgit.FreeBSD.org/doc/commit/?id=dbde9910146157cd33559c36a866542f2c3b73cd
commit dbde9910146157cd33559c36a866542f2c3b73cd
Author: Mateusz Piotrowski <0mp at FreeBSD.org>
AuthorDate: 2021-04-19 09:38:28 +0000
Commit: Mateusz Piotrowski <0mp at FreeBSD.org>
CommitDate: 2021-04-19 09:38:28 +0000
Replace named with sshd in an example
Also, mention the existence of the sysrc(8) tool.
---
documentation/content/en/books/faq/_index.adoc | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/documentation/content/en/books/faq/_index.adoc b/documentation/content/en/books/faq/_index.adoc
index a5fdb454d1..a1044ab155 100644
--- a/documentation/content/en/books/faq/_index.adoc
+++ b/documentation/content/en/books/faq/_index.adoc
@@ -1336,11 +1336,18 @@ ZFS TRIM support was added to GELI as of link:https://svnweb.freebsd.org/changes
The primary configuration file is [.filename]#/etc/defaults/rc.conf# which is described in man:rc.conf[5]. System startup scripts such as [.filename]#/etc/rc# and [.filename]#/etc/rc.d#, which are described in man:rc[8], include this file. _Do not edit this file!_ Instead, to edit an entry in [.filename]#/etc/defaults/rc.conf#, copy the line into [.filename]#/etc/rc.conf# and change it there.
-For example, if to start man:named[8], the included DNS server:
+For example, to start man:sshd[8], the included OpenSSH daemon:
[source,shell]
....
-# echo 'named_enable="YES"' >> /etc/rc.conf
+# echo 'sshd_enable="YES"' >> /etc/rc.conf
+....
+
+Alternatively, use man:sysrc[8] to modify [.filename]#/etc/rc.conf#:
+
+[source,shell]
+....
+# sysrc sshd_enable="YES"
....
To start up local services, place shell scripts in the [.filename]#/usr/local/etc/rc.d# directory. These shell scripts should be set executable, the default file mode is `555`.
More information about the dev-commits-doc-all
mailing list