User Tools

Site Tools


agent_no_relative_directories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
agent_no_relative_directories [2019/06/27 14:22]
robert.fan [Specify Working Directories for Agent Files]
agent_no_relative_directories [2020/02/27 13:52] (current)
robert.fan
Line 5: Line 5:
 By default the **agent.xml** file, **log4j2.xml** file, and **perspectium_data** directory will be saved in the parent Replicator Agent directory. However, you can make some manual changes to agent configuration files to specify a different "​working directory"​ for these files/​directories. ​ By default the **agent.xml** file, **log4j2.xml** file, and **perspectium_data** directory will be saved in the parent Replicator Agent directory. However, you can make some manual changes to agent configuration files to specify a different "​working directory"​ for these files/​directories. ​
  
-__**NOTE**__**:​** You will still need to keep a **conf** directory in the parent directory for the Replicator Agent. However, the new working directory that you specify ​should ​also contain ​a **conf** directory ​and **log** directory with the **agent.xml** and **log4j2.xml** files in each respective ​directory. The **perspectium_data** directory will be in the first level of the working directory.+__**NOTE**__**:​** You will still need to keep a **conf** directory in the parent directory for the Replicator Agent. However, ​in the new working directory that you specify ​you must also create ​a **conf** directory ​containing your **agent.xml** and **log4j2.xml** files. You must also create a **logs** ​directory. This is where your agent logs will be generated. The **perspectium_data** directory will be generated ​in the first level of the working directory ​alongside these two directories.
  
 =====Specifying Working Directories for the Agent in Windows===== =====Specifying Working Directories for the Agent in Windows=====
  
-To specify working ​directories for the **conf**, **bin**, and **perspectium_data** folders ​for the Replicator Agent in Windows, follow these steps:+To specify ​working ​directory ​for the Replicator Agent in Windows, follow these steps:
 \\ \\
 \\ \\
Line 42: Line 42:
 \\ \\
 \\ \\
-**1.** Locate the **setenv.sh** file within the **bin** directory in the Replicator Agent parent directory that was created upon [[agent_installation|initial installation of the agent]].+**1.** Locate the **wrapper.conf** file within the **conf** directory in the Replicator Agent parent directory that was created upon [[agent_installation|initial installation of the agent]].
 \\ \\
 \\ \\
-**2.** Open the **setenv.sh** file in your preferred text editing application and locate the following line in the file:  +**2.** Open the **wrapper.conf** file in your preferred text editing application and locate the following line in the file:  
-wrapper_java_sys_options=-Djna_tmpdir="​$wrapper_home"/​../tmp+wrapper.java.additional.2=-Dlog4j.configurationFile=file:../conf/​log4j2.xml
 \\ \\
 \\ \\
-Replace this line with: wrapper_java_sys_options=-Djna_tmpdir="​$wrapper_home"​/../tmp\ -Dcom.perspectium.working.directory=**DIRECTORY_PATH**+Replace this line with:  
 +wrapper.java.additional.2=-Dlog4j.configurationFile=file:​**DIRECTORY_PATH**/conf/log4j2.xml 
 +\
 +\\ 
 +**3.** Directly under this line add another line: wrapper.java.additional.3=-Dcom.perspectium.working.directory=**DIRECTORY_PATH**
 \\ \\
 \\ \\
 where **DIRECTORY_PATH** is the full path for the working directory where you want to save these folders. where **DIRECTORY_PATH** is the full path for the working directory where you want to save these folders.
agent_no_relative_directories.1561670569.txt.gz · Last modified: 2019/06/27 14:22 by robert.fan