Date: Mon, 19 Apr 2021 10:08:22 GMT From: Mateusz Piotrowski <0mp@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: dbde991014 - main - Replace named with sshd in an example Message-ID: <202104191008.13JA8MZC066207@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by 0mp: URL: https://cgit.FreeBSD.org/doc/commit/?id=dbde9910146157cd33559c36a866542f2c3b73cd commit dbde9910146157cd33559c36a866542f2c3b73cd Author: Mateusz Piotrowski <0mp@FreeBSD.org> AuthorDate: 2021-04-19 09:38:28 +0000 Commit: Mateusz Piotrowski <0mp@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`.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104191008.13JA8MZC066207>