Koozali.org formerly Contribs.org

Contribs.org Forums => Development => Topic started by: kittykat on November 26, 2020, 05:16:32 PM

Title: server-manger scripts
Post by: kittykat on November 26, 2020, 05:16:32 PM
Hi Guys

What is the location of the server-manager scripts? I am trying to see if I can understand how the configs files are updated via the front end.

Thanks
Kitty.
Title: Re: server-manger scripts
Post by: ReetP on November 27, 2020, 07:09:59 PM
What is the location of the server-manager scripts? I am trying to see if I can understand how the configs files are updated via the front end.

It isn't quite as simple as that.

The server-manager calls some functions that in turn call some actions (that you can also use on the command line) in /etc/e-smith/events

Those events and actions will regenerate templates from /etc/e-smith/template & templates-custom (and a few other bits) and start/stop /restart services. They use code from /usr/share/perl5/vendor_perl/esmith to do that.

It is like watching a ballet ;-)

HOWEVER. Knowing some of this means you are quite likely to break something.

Please, make sure you know what you are doing before hacking!