Difference between revisions of "SME Server:Documentation:Technical Manual:Chapter3"

From SME Server
Jump to navigationJump to search
(custom template example)
m
Line 32: Line 32:
 
Custom templates allow for site specific overrides of normal behaviour.
 
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
+
For example make a change to the firewall.
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
 
  mkdir -p /etc/e-smith/templates-custom/etc/rc.d/init.d/masq
Line 47: Line 42:
  
 
  signal-event remoteaccess-update
 
  signal-event remoteaccess-update
 +
 +
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

Revision as of 09:06, 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.

For 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

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