On Sat, Oct 27, 2012 at 11:57 AM, Mike Korbakov <mike-...@yandex.ru> wrote:
> I see, compatibility section overwrites what was entered before.
> Two blocking light switches are very comfortable in a long corridor,
> but i can't understand why 2 switches are where it affects on security.
>
> 27.10.2012, 22:24, "Remco" <re...@d-compu.dyndns.org>:
>> Mike Korbakov wrote:
>>
>>>  Hi, misc !
>>>
>>>  I've changed /etc/rc.conf to run portmap at startup:
>>>  portmap_flags=""        # for normal use: ""
>>>
>>>  But it not running after boot, see below:
>>
>> You're not supposed to edit rc.conf, but put your config in rc.conf.local.
>

Hi Mike,

I'm not quite sure what you're saying here... if by "2 switches" you
mean rc.conf and rc.conf.local, the reason you don't touch rc.conf is
so upgrades go smoothly.  If you have not changed the rc.conf, the
upgrade script can just replace it with a newer version rather than
mucking about trying to merge your changes.  Also, if you put all
local changes in rc.conf.local, you can see at a a glance what changes
have been made.

I don't see reference to pkg_scripts in this thread so far.  To start
portmap on boot, you should have (at minimum) these in rc.conf.local:
portmap_flags=""
pkg_scripts="portmap"

pkg_scripts is a space delimited list. For example, you might have
something like this if you also run other services on boot:
pkg_scripts="portmap httpd nfsen samba"


If by "2 switches" you mean portmap_flags and pkg_scripts, I don't
know, you would think that if I went to the trouble of adding
'pkg_scripts="portmap"' to rc.conf.local, that it would be obvious
that I want to run portmap...

My only thought is that some daemons need flags to be defined in order
to run properly, such as:
$ grep normal /etc/rc.conf |grep -v -e^# -e\"\"
rarpd_flags=NO          # for normal use: "-a"
ldattach_flags=NO       # for normal use: "[options] linedisc cua-device"
mopd_flags=NO           # for normal use: "-a"
dhcrelay_flags=NO       # for normal use: "-i interface [server]"
rtadvd_flags=NO         # for normal use: list of interfaces
rtsold_flags=NO         # for normal use: interface
tftpd_flags=NO          # for normal use: "[chroot dir]"
nfsd_flags=NO                   # for normal use: "-tun 4" and see nfsd(8)


-Barry

Reply via email to