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. ;)