Reload Univention Configuration Registry after changed

Hello
I have a question about Univention Configuration Registry, How can I reload or apply my setting after make change the Univention Configuration Registry without restart server
Thank you for advance
Best regards

The Univention Configuration Registry is a tool to manage the local systems configuration files. Settings are stored in UCR variables and config files are generated from UCR templates. Variables are normally bound to config templates, if a variable gets changed, the config file is regenerated from the template based on the new settings in the UCR variable.

For example, there is a UCR template for the ssh server config file /etc/ssh/sshd_config and a lot of variables, that are bound to this file. If such a variable is changed, the config file is regenerated.

-> more /etc/ssh/sshd_config | grep X11Fo X11Forwarding no -> ucr set sshd/xforwarding='yes' Setting sshd/xforwarding File: /etc/ssh/sshd_config -> more /etc/ssh/sshd_config | grep X11Fo X11Forwarding yes
What UCR not does, is to restart services. So after changing the UCR variable (and therefor the config file), the service has to be reloaded (the ssh daemon in our example).

-> service ssh reload [ ok ] Reloading OpenBSD Secure Shell server's configuration: sshd.
There is way to recreate all config files, UCR knows of.

-> ucr commit

But that also does not reload/restart any services/daemons. This has to be done manually with “service xyz reload/restart”.

Hope this helps, best regards
Felix

[quote=“botner”]The Univention Configuration Registry is a tool to manage the local systems configuration files. Settings are stored in UCR variables and config files are generated from UCR templates. Variables are normally bound to config templates, if a variable gets changed, the config file is regenerated from the template based on the new settings in the UCR variable.

For example, there is a UCR template for the ssh server config file /etc/ssh/sshd_config and a lot of variables, that are bound to this file. If such a variable is changed, the config file is regenerated.

-> more /etc/ssh/sshd_config | grep X11Fo X11Forwarding no -> ucr set sshd/xforwarding='yes' Setting sshd/xforwarding File: /etc/ssh/sshd_config -> more /etc/ssh/sshd_config | grep X11Fo X11Forwarding yes
What UCR not does, is to restart services. So after changing the UCR variable (and therefor the config file), the service has to be reloaded (the ssh daemon in our example).

-> service ssh reload [ ok ] Reloading OpenBSD Secure Shell server's configuration: sshd.
There is way to recreate all config files, UCR knows of.

-> ucr commit

But that also does not reload/restart any services/daemons. This has to be done manually with “service xyz reload/restart”.

Hope this helps, best regards
Felix[/quote]
Thank you so much

Mastodon