Bug 247970 - manpage of rc.conf refers to /opt
Summary: manpage of rc.conf refers to /opt
Status: Closed Not A Bug
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Gordon Bergling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-14 12:55 UTC by Michael Osipov
Modified: 2020-07-20 10:08 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov 2020-07-14 12:55:07 UTC
Manpage of rc.conf refers to:
> ./share/man/man5/rc.conf.5:.Pa /opt/conf ,
> ./share/man/man5/rc.conf.5:.Pa /opt/conf/rc.conf.d/jail

but there is no /opt on BSD nor does it appear in hier(7). Please remove this System V annoyance.
Comment 1 Frank Leonhardt 2020-07-14 17:03:06 UTC
The manual page is saying that you can define arbitrary startup scripts using the "local_startup" variable set in rc.conf. If you want to call them /opt/xyz (or anything else) there's nothing to stop you. It doesn't look there by default. Some Linux types like to put things in /opt so it's a good example to choose.
Comment 2 Michael Osipov 2020-07-14 19:22:42 UTC
(In reply to Frank Leonhardt from comment #1)

I knew this would pop up, but BSD != Linux. You want an make it /usr/xyz or something completely different like /xyz. Linux does not even have /opt by default, because this is System V and Linux is neither one.
Comment 3 Gordon Bergling freebsd_committer freebsd_triage 2020-07-20 10:08:11 UTC
The usage of /opt/conf may be a little bit misleading, but it is a known alternative most people are familiar with and a good demonstration on how local_startup could be used.