Hasan Muhammad wrote:
> [...]
> I just thought some kind of /sbin/e-smith/expand-events would be
> more elegant
OK, I think you've hit a philosophical issue here.
The idea of templates-custom was to modify the behaviour of the
existing services - e.g. change policy for hosts.allow, etc.
I view adding extra services as something that should only be done
via the install of an additional RPM. That RPM can install events,
add new template fragments to /etc/e-smith/templates, add new
web panels, as required.
The writer of the RPM can choose default behaviour for their new
service.
This can then be customised through template modifications in
/etc/e-smith/templates-custom
So, to reinstall your services/events, you would just re-install the
relevant RPM. And if any local overrides have been done, you
reinstall the files in /etc/e-smith/templates-custom (which you might
also like to build into your local site RPM to make it easy).
Have a look at
ftp://ftp.e-smittp://ftp.e-smith.net/pub/e-smith/contrib/charlieb/
for some examples.
Gordon