Koozali.org: home of the SME Server

server-manger scripts

Offline kittykat

  • 14
  • +0/-0
server-manger scripts
« 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.

Offline ReetP

  • *
  • 3,853
  • +5/-0
Re: server-manger scripts
« Reply #1 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!
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline poodlespoke

  • 1
  • +0/-0
Re: server-manger scripts
« Reply #2 on: September 17, 2024, 01:28:51 PM »
Thanks for your reply. I will consider it.