Difference between revisions of "Custom Scripts"
Line 2: | Line 2: | ||
* [http://ironpython.net/documentation/dotnet/ Iron Python] | * [http://ironpython.net/documentation/dotnet/ Iron Python] | ||
* [http://technet.microsoft.com/en-us/library/bb490869.aspx Batch]/[http://www.freeos.com/guides/lsst/ Shell script] Object properties and variables are converted to environment variables. | * [http://technet.microsoft.com/en-us/library/bb490869.aspx Batch]/[http://www.freeos.com/guides/lsst/ Shell script] Object properties and variables are converted to environment variables. | ||
− | ** Use Linux environment variables like this: $[Object_Property] | + | ** Use Linux environment variables like this: '''$[Object_Property]''' |
− | ** Use Windows environment variables like this %Object_Property% | + | ** Use Windows environment variables like this '''%Object_Property%''' |
You can specify if you want to run your script on Windows servers, Linux servers, or both. | You can specify if you want to run your script on Windows servers, Linux servers, or both. |
Revision as of 12:27, 1 July 2011
TCAdmin supports the following scripting engines:
- Iron Python
- Batch/Shell script Object properties and variables are converted to environment variables.
- Use Linux environment variables like this: $[Object_Property]
- Use Windows environment variables like this %Object_Property%
You can specify if you want to run your script on Windows servers, Linux servers, or both.
The following events are supported:
- Before created
- Occurs before any files and folders have been created.
- Available objects: ThisServer, ThisGame, ThisUser
- After created
- Occurs after the service files have been created but before it has been configured as a service.
- Available objects: ThisServer, ThisGame, ThisUser, ThisService
- Before deleted
- Occurs before the delete process is started.
- Available objects: ThisServer, ThisGame, ThisUser, ThisService
- After deleted
- Occurs after the service files have been deleted and it has been removed from the database.
- Available objects: ThisServer, ThisGame, ThisUser, ThisService
- Before reinstall
- Occurs before the service files have been deleted.
- Available objects: ThisServer, ThisGame, ThisUser, ThisService
- After reinstall
- Occurs after the service has been reinstalled but before it has been configured as a service.
- Available objects: ThisServer, ThisGame, ThisUser, ThisService
- Before move
- Occurs before the service has been moved. It is executed on the server where the service is currently located.
- Available objects: ThisServer, ThisGame, ThisUser, ThisService
- After move
- Occurs after the service has been moved. It is executed on the server where the service was moved to.
- Available objects: ThisServer, ThisGame, ThisUser, ThisService
- Before started
- Occurs before the service is started.
- Available variables: Service Manager Scripting Variables
- After stopped
- Occurs after the service is stopped.
- Available variables: Service Manager Scripting Variables