Fixed resource manager /run directory not found issue when starting
diff --git a/resource/src/main/assembly/assembly.xml b/resource/src/main/assembly/assembly.xml
index c753724..f0ac5a6 100644
--- a/resource/src/main/assembly/assembly.xml
+++ b/resource/src/main/assembly/assembly.xml
@@ -52,6 +52,7 @@
<includes>
<include>resource.properties</include>
<include>logging.properties</include>
+ <include>log4j2.xml</include>
</includes>
</fileSet>
<fileSet>
@@ -67,6 +68,14 @@
<outputDirectory>policy</outputDirectory>
<excludes/>
</fileSet>
+ <!-- Create /run directory to store PID -->
+ <fileSet>
+ <directory>${basedir}/src/main/resources/examples</directory>
+ <outputDirectory>run</outputDirectory>
+ <excludes>
+ <exclude>**/*</exclude>
+ </excludes>
+ </fileSet>
<fileSet>
<directory>target/site/apidocs</directory>
<filtered>false</filtered>
diff --git a/resource/src/main/bin/resmgr b/resource/src/main/bin/resmgr
index 1ca4978..9a59d32 100644
--- a/resource/src/main/bin/resmgr
+++ b/resource/src/main/bin/resmgr
@@ -36,9 +36,9 @@
export JAVA_HOME
CAS_RESMGR_HOME=..
export CAS_RESMGR_HOME
-RUN_HOME=${CAS_RESMGR_HOME}/../run
+RUN_HOME=${CAS_RESMGR_HOME}/run
export RUN_HOME
-CAS_RESMGR_PROPS=../etc/resource.properties
+CAS_RESMGR_PROPS=${CAS_RESMGR_HOME}/etc/resource.properties
export CAS_RESMGR_PROPS
PATH=${JAVA_HOME}/bin:${CAS_RESMGR_HOME}/bin:/usr/bin:/bin:/usr/sbin:/sbin