Difference between revisions of "SME Server:Documentation:Technical Manual:Chapter3"
(Added FixMe template isntead of plain FIXME text) |
(custom template example) |
||
Line 9: | Line 9: | ||
dbfiles are in /home/e-smith/db | dbfiles are in /home/e-smith/db | ||
− | + | To set a db property manually | |
+ | |||
+ | db accounts show james | ||
+ | db accounts setprop james EmailForward local | ||
More information about the internal configuration database of SME Server can be found in the [[http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c382.htm SME Server Developer's Guide]]. | More information about the internal configuration database of SME Server can be found in the [[http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c382.htm SME Server Developer's Guide]]. | ||
Line 34: | Line 37: | ||
====Usage==== | ====Usage==== | ||
− | + | Fore example make a change to the firewall. | |
− | + | mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq | |
+ | |||
+ | cp /etc/e-smith/templates/etc/rc.d/init.d/masq/35transproxy \ | ||
+ | /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/ | ||
+ | |||
+ | nano -w nano -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/35transproxy | ||
− | + | signal-event remoteaccess-update |
Revision as of 08:05, 15 April 2007
Chapter 3. Configuration Guide
For more detailed information refer to the Developers Manual
db commands
type db for usage
db
dbfiles are in /home/e-smith/db
To set a db property manually
db accounts show james db accounts setprop james EmailForward local
More information about the internal configuration database of SME Server can be found in the [SME Server Developer's Guide].
Actions and Events
Actions and Events are used to apply configuration changes and most of them are fired through the panels of the server-manager. An event can consist of multiple actions.
To fire an event from the SME Server shell you simply type
signal-event event-name
To reboot your server for instance you would type:
signal-event reboot
More information about [Actions] and [Events] can be found in the [SME Server Developer's Guide].
Custom Templates
Custom templates allow for site specific overrides of normal behaviour.
Note, they are not to be used in contrib rpms, if a change is needed in the original fragment raise a bug see http://forums.contribs.org/index.php?topic=35156.0
Usage
Fore example make a change to the firewall.
mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq cp /etc/e-smith/templates/etc/rc.d/init.d/masq/35transproxy \ /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/ nano -w nano -w /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/35transproxy
signal-event remoteaccess-update