Enabling Linux support at Startup

zugbug

Cadet
Joined
May 28, 2022
Messages
2
Hi all,

I have a question: how do I enable sysrc for the *host* at startup?
I need to run sysrc linux_enable="YES" every time my machine reboots, for a linux app. I would prefer to not have to run a dedicated virtual machine just for one app, but guides/recommendations are welcome.

My machine randomly reboots, I suspect a hardware issue, and when it comes back online the sysrc I changed in terminal gets reset.
Please advise.

Thank you
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Set a RC.CONF type loadable in System->Tunables with variable linux_enable and value YES.
 

zugbug

Cadet
Joined
May 28, 2022
Messages
2
That works! Thank you.

Would you know if that guarantees that service linux start will run on startup as well then?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
If /etc/rc.d/linux checks for the rc.conf value, then it should start.
 
Top