Stop suggesting the use of the dangerous prefix "force"
with rc.d scripts. The prefix "one" is the safe way to override rc.conf once. OTOH "force" will disable sanity checks as well.
This commit is contained in:
parent
7c6f9fab80
commit
d5b45016fd
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=28944
1 changed files with 2 additions and 2 deletions
|
@ -730,12 +730,12 @@ HOME=/var/log
|
|||
<option>start</option>, <option>stop</option> or
|
||||
<option>restart</option> a service regardless of the settings in
|
||||
<filename>/etc/rc.conf</filename>, the commands should be
|
||||
prefixed with <quote>force</quote>. For instance to restart
|
||||
prefixed with <quote>one</quote>. For instance to restart
|
||||
<command>sshd</command> regardless of the current
|
||||
<filename>/etc/rc.conf</filename> setting, execute the following
|
||||
command:</para>
|
||||
|
||||
<screen>&prompt.root; <userinput>/etc/rc.d/sshd forcerestart</userinput></screen>
|
||||
<screen>&prompt.root; <userinput>/etc/rc.d/sshd onerestart</userinput></screen>
|
||||
|
||||
<para>It is easy to check if a service is enabled in
|
||||
<filename>/etc/rc.conf</filename> by running the appropriate
|
||||
|
|
Loading…
Reference in a new issue