Environment variables define some aspect or component of a service's working environment. Environment variables can not only be set via the Environment tab in FireDaemon Pro but can be set at system boot by editing C:\AUTOEXEC.BAT or via batch scripts. System wide and user level environment variables can also be set by right clicking on My Computer, choose Properties, choose the Advanced tab then click on the Environment Variables button.

Any environment variables set in FireDaemon Pro's Environment tab will override User and System environment variables for the applicable service only.

When you install FireDaemon Pro, two system wide environment variables are defined: FIREDAEMON and FIREDAEMON_HOME. The former is the path and name of the firedaemon.exe executable. The latter is the FireDaemon Pro installation directory. You can use these environment variables in scripts to assist you in using and configuring FireDaemon and FireDaemon services.
When you run a FireDaemon service, the following environment variables are available to the sub-process as well as Pre-Service and Post-Service events. They can be expanded by enclosing them in percentage signs (eg. %FDServiceShortName%).
|
Variable |
Description |
|
FDServiceShortName |
Service Short Name |
|
FDServiceDisplayName |
Service Display Name |
|
FDServiceDescription |
Service Description |
|
FDServiceExecutabe |
Service Executable |
|
FDServiceWorkDir |
Service Working Directory |
|
FDServiceParameters |
Service Parameters |