Changes

From SME Server
Jump to navigationJump to search
3,557 bytes removed ,  18:44, 24 November 2013
Line 521: Line 521:  
  https://localhost:9443/server-manager
 
  https://localhost:9443/server-manager
   −
==SME Server specific==
  −
  −
{| class="wikitable"
  −
|-
  −
! Command !! Explanation
  −
|-
  −
| signal-event post-upgrade || performs SME Server to go regenerate all templates
  −
|-
  −
| signal-event reboot || reboots the server
  −
|-
  −
| signal-event <event> || performs SME Server to go regenerate event template '''(you may use TAB to auto-complete your command line)'''
  −
|-
  −
| signal-event console-save || Expands templates and reconfigures services which can be changed from the text-mode console and which do not require a reboot
  −
|-
  −
| signal-event dns-update || refreshes the DNS cache, useful for when you know a domain has changed IP and the TTL is too long to wait
  −
|-
  −
| /etc/e-smith/events/actions/navigation-conf || recreates server-manager navigation panel
  −
|-
  −
| config show || display the internal configuration of the server
  −
|-
  −
| config show <service name> || show the service configuration '''(you may use TAB to auto-complete your command line)'''
  −
|-
  −
| db || shows the syntax of the db command
  −
|-
  −
| db configuration show || shows the entire server configuration
  −
|-
  −
| db configuration setprop <record> <property> <value> || sets or changes a property in the configuration database
  −
|-
  −
| db accounts show || shows all account details
  −
|-
  −
| db accounts show <accountname> || shows the account details
  −
|-
  −
| /etc/e-smith/events/actions/initialize-default-databases|| action for initializing the default database values
  −
|}
  −
  −
===db command===
  −
{{note box|SME Server comes with the most used parameters set as variables in its internal configuration databases. These variables are used to store values to be used in the final configuration files. Please, read the [[SME_Server:Documentation:Developers_Manual:Section2]] to understand the template and database process.}}
  −
  −
you can see this page of the wiki [[DB_Variables_Configuration]]
  −
  −
==== Setting db variables to default values ====
  −
{{Note box| Use of 'config' is a shorthand version for 'db configuration' and therefore only works with the configuration database}}
  −
  −
Any db variable that has a default value can be reset to the default by deleting the variable entirely, then re-initializing the default database values as follows:
  −
config delprop <key> <prop>
  −
/etc/e-smith/events/actions/initialize-default-databases
  −
  −
==== Delete a property value ====
  −
To delete the property
  −
db accounts delprop <key> <prop>
  −
  −
==== Reset a property value ====
  −
To reset to an empty value
  −
db accounts setprop <key> <prop> <nowiki>''</nowiki>
  −
  −
{{Warning box|Database parameters are case sensitive so take great care when typing at the server shell because no error messages are given should you make a mistake.}}
  −
  −
====Give a shell access to "user"====
  −
db accounts setprop user Shell /bin/bash
  −
signal-event user-modify user
  −
  −
====Give some external or internal access permissions to foo service====
  −
config setprop foo PublicAccess OPTION
  −
signal-event console-save
  −
  −
  −
OPTION is either of the following.
  −
  −
        none            => No access
  −
        local            => Local network  (no password required)
  −
        local-pw        => Local network  (password required)
  −
        global          => Entire Internet(no password required)
  −
        global-pw        => Entire Internet(password required)
  −
        global-pw-remote => Entire Internet(password required outside local network)
  −
  −
=== General Service Handling ===
  −
  −
*start
  −
sv u /service/servicename
  −
*stop
  −
sv d /service/servicename
  −
*restart
  −
sv t /service/servicename
  −
  −
{{tip box|you may use TAB to auto-complete your command line}}
  −
  −
====Example====
  −
  −
Restarting:
  −
  −
sv t /service/httpd-e-smith
       

Navigation menu