OPNsense Forum

English Forums => Development and Code Review => Topic started by: mimugmail on November 20, 2018, 07:13:08 AM

Title: Reload config.xml without reboot
Post by: mimugmail on November 20, 2018, 07:13:08 AM
It's easy to revert a config.xml via SSH when just replacing the file itself or editing and finally reboot.
Is there a way to also do this without a reboot via CLI?

Just adding some stuff to config.xml and hitting save via UI overwrites it and via google you only find pfsense examples not fitting here.

Anyone? :)

Thx
Michael
Title: Re: Reload config.xml without reboot
Post by: franco on November 20, 2018, 07:14:34 AM
Option 11 from the menu?

or

# opnsense-shell reload
Title: Re: Reload config.xml without reboot
Post by: franco on November 20, 2018, 07:15:03 AM
PS: Yes it won't reload everything. But it reloads all vital systems...
Title: Re: Reload config.xml without reboot
Post by: mimugmail on November 20, 2018, 07:32:39 AM
Is there a documentation (needed??)
Title: Re: Reload config.xml without reboot
Post by: franco on November 20, 2018, 07:36:39 AM
Yes and no, the console menu may deserve a docs page in its entirety, but other than shortly describing what each option does there's not a lot (of surprising behaviour) to document.


Cheers,
Franco
Title: Re: Reload config.xml without reboot
Post by: mimugmail on November 20, 2018, 07:41:28 AM
I meant opnsense-shell :)
Title: Re: Reload config.xml without reboot
Post by: franco on November 20, 2018, 07:47:37 AM
Same thing. There's also:

# man opnsense-shell

But it's currently missing the supported commands. ;)
Title: Re: Reload config.xml without reboot
Post by: mimugmail on November 20, 2018, 09:19:23 AM
OK, great. And all new MVC code also adds a UUID, how is it generated? Is there a logic behind I'm not aware of? :)
Title: Re: Reload config.xml without reboot
Post by: franco on November 20, 2018, 09:57:26 AM
Now I'm confused. ;)
Title: Re: Reload config.xml without reboot
Post by: rainerle on October 19, 2024, 05:13:05 PM
I tried reloading my adjusted config in /conf/config.xml with option 11 and it just hangs at the VLAN interfaces (see attachment)...

How can I make the output more verbose???

Title: Re: Reload config.xml without reboot
Post by: franco on October 19, 2024, 07:51:48 PM
Probably hangs during ifconfig call somewhere in the kernel...

You could also try to explain what you're doing instead of posting to an unrelated 2018 forum entry. ;)


Cheers,
Franco
Title: Re: Reload config.xml without reboot
Post by: rainerle on October 20, 2024, 01:25:43 PM
I had to re-open an older back door to our network since somehow the RADIUS based IPSec VPN suddenly was not working anymore.
So I removed the disabled section in the firewall rules and then tried to reload the config from the CLI. I only had CLI access as I was using an even older back door from another location and was using various SSH and Telnnet "jump servers" to get to the CLI of the opnsense...