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

From SME Server
Jump to navigationJump to search
(Added Template:Languages)
(Fixed links to developer guide)
Line 28: Line 28:
 
   signal-event reboot
 
   signal-event reboot
  
More information about [[http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c382.htm#AEN384 Actions]] and [[http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/x409.htm Events]] can be found in the [[http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c382.htm SME Server Developer's Guide]].
+
More information about [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c382.htm#AEN384 Actions] and [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/x409.htm Events] can be found in the [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c382.htm SME Server Developer's Guide].
  
 
===Custom Templates===
 
===Custom Templates===

Revision as of 06:56, 1 May 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