Missing rc.conf

Started by 9axqe, May 14, 2024, 01:22:42 PM

Previous topic - Next topic
I know too little about freeBSD and I'm struggling a bit here.

I want to setup a cloudflare tunnel which is launched at startup, which requires cloudflared.

The instructions I found say:

vi /etc/rc.conf

add:


cloudflared_enable="YES"
cloudflared_mode="tunnel --no-autoupdate run --post-quantum --token your_token_here"


but there is no "rc.conf" file (anymore?) and hence I feel these instructions are outdated.

Should I store these lines in an "/etc/rc.conf.d/cloudflared" file rather?

Yes that will work.
Hardware:
DEC740

You can use /etc/rc.conf without any issue. We don't create one by default because it's empty and unused. This makes sure we never ever mess with user settings there.


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT