You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ya...@apache.org on 2025/06/30 05:34:43 UTC

(airavata) 05/07: rename all keystore references to airavata.jks. improve service start scripts and make them same-syntax. add deployment-scripts to dev-tools

This is an automated email from the ASF dual-hosted git repository.

yasith pushed a commit to branch distribution-improvements
in repository https://gitbox.apache.org/repos/asf/airavata.git

commit 12da6c7280ce911efb1bcc212875e37a0bc40fd8
Author: yasithdev <ya...@icloud.com>
AuthorDate: Sun Jun 29 16:09:55 2025 -0500

    rename all keystore references to airavata.jks. improve service start scripts and make them same-syntax. add deployment-scripts to dev-tools
---
 airavata-api/pom.xml                               |   1 -
 .../airavata/api/client/AiravataClientFactory.java |   2 +-
 .../core/impl/TenantManagementKeycloakImpl.java    |   4 +-
 .../service/security/KeyCloakSecurityManager.java  |   4 +-
 .../src/main/resources/airavata-client.properties  |   4 +-
 .../src/main/resources/airavata-server.properties  |   4 +-
 .../airavata/common/utils/SecurityUtilTest.java    |   8 +-
 .../store/cpi/SSHSummaryTest/SSHSummaryTest.java   |   2 +-
 .../store/store/impl/db/CredentialsDAOTest.java    |   4 +-
 .../scigap/develop/group_vars/all/vars.yml         |   6 +-
 .../scigap/production/group_vars/all/vars.yml      |   8 +-
 .../scigap/staging/group_vars/all/vars.yml         |   6 +-
 .../scigap/testing/group_vars/all/vars.yml         |   6 +-
 .../inventories/standalone/group_vars/all/vars.yml |   4 +-
 .../inventories/template/group_vars/all/vars.yml   |   4 +-
 dev-tools/ansible/roles/common/defaults/main.yml   |   2 +-
 dev-tools/ansible/roles/common/tasks/main.yml      |   2 +-
 dev-tools/ansible/roles/keycloak/defaults/main.yml |   4 +-
 dev-tools/deployment-scripts/.gitignore            |   1 +
 .../deployment-scripts/distribution_backup.sh      |  20 ++
 .../deployment-scripts/distribution_update.sh      |  41 ++++
 dev-tools/deployment-scripts/services_down.sh      |  38 ++++
 dev-tools/deployment-scripts/services_up.sh        |  38 ++++
 .../src/main/assembly/load-client-bin-assembly.xml |   2 +-
 .../airavata/tools/load/SecurityManager.java       |   2 +-
 .../airavata/client/secure/client/Properties.java  |   2 +-
 keystores/client_truststore.jks                    | Bin 2351 -> 0 bytes
 keystores/generate_keystore.sh                     |   7 +-
 modules/agent-framework/agent-service/pom.xml      |   1 -
 .../main/assembly/agent-service-bin-assembly.xml   |   2 +-
 .../distribution/bin/agent-service-daemon.sh       | 112 ----------
 .../resources/distribution/bin/agent-service.sh    | 191 +++++++++++++----
 .../resources/distribution/conf/application.yml    |   2 +-
 .../src/main/assembly/api-server-bin-assembly.xml  |   6 +-
 .../src/main/docker/docker-compose.yml             |   4 +-
 .../api-server/bin/airavata-server-start.sh        | 144 -------------
 .../api-server/bin/airavata-server-stop.sh         |  71 -------
 .../resources/api-server/bin/controller-daemon.sh  | 113 ----------
 .../main/resources/api-server/bin/controller.sh    |  71 -------
 .../src/main/resources/api-server/bin/derby.sh     |  23 ---
 .../api-server/bin/email-monitor-daemon.sh         | 113 ----------
 .../main/resources/api-server/bin/email-monitor.sh |  71 -------
 .../resources/api-server/bin/parser-wm-daemon.sh   | 113 ----------
 .../src/main/resources/api-server/bin/parser-wm.sh |  71 -------
 .../resources/api-server/bin/participant-daemon.sh | 113 ----------
 .../main/resources/api-server/bin/participant.sh   |  71 -------
 .../resources/api-server/bin/post-wm-daemon.sh     | 113 ----------
 .../src/main/resources/api-server/bin/post-wm.sh   |  71 -------
 .../main/resources/api-server/bin/pre-wm-daemon.sh | 113 ----------
 .../src/main/resources/api-server/bin/pre-wm.sh    |  71 -------
 .../api-server/bin/realtime-monitor-daemon.sh      | 113 ----------
 .../resources/api-server/bin/realtime-monitor.sh   |  71 -------
 .../resources/api-server/bin/sharing-registry.sh   |  90 --------
 .../bin/airavata-server.bat                        |   0
 .../resources/distribution/bin/airavata-server.sh  | 227 +++++++++++++++++++++
 .../main/resources/distribution/bin/controller.sh  | 166 +++++++++++++++
 .../resources/distribution/bin/email-monitor.sh    | 166 +++++++++++++++
 .../main/resources/distribution/bin/parser-wm.sh   | 166 +++++++++++++++
 .../main/resources/distribution/bin/participant.sh | 166 +++++++++++++++
 .../src/main/resources/distribution/bin/post-wm.sh | 166 +++++++++++++++
 .../src/main/resources/distribution/bin/pre-wm.sh  | 166 +++++++++++++++
 .../resources/distribution/bin/realtime-monitor.sh | 166 +++++++++++++++
 .../{api-server => distribution}/bin/setenv.bat    |   0
 .../{api-server => distribution}/bin/setenv.sh     |  22 +-
 .../resources/distribution/bin/sharing-registry.sh |  92 +++++++++
 .../bin/start-network-server.sh                    | 133 ++++++------
 .../conf/airavata-server.properties                |   4 +-
 .../conf/email-config.yaml                         |   0
 .../{api-server => distribution}/conf/log4j2.xml   |   0
 .../distribution/bin/file-service-daemon.sh        | 112 ----------
 .../resources/distribution/bin/file-service.sh     | 187 +++++++++++++----
 modules/ide-integration/README.md                  |  11 +-
 modules/ide-integration/pom.xml                    |   1 -
 .../src/main/resources/airavata-server.properties  |   4 +-
 .../assembly/research-service-bin-assembly.xml     |   2 +-
 .../distribution/bin/research-service-daemon.sh    | 112 ----------
 .../resources/distribution/bin/research-service.sh | 191 +++++++++++++----
 77 files changed, 2208 insertions(+), 2212 deletions(-)

diff --git a/airavata-api/pom.xml b/airavata-api/pom.xml
index f6b952652e..f05bcf414b 100644
--- a/airavata-api/pom.xml
+++ b/airavata-api/pom.xml
@@ -549,7 +549,6 @@ under the License.
         <targetPath>keystores</targetPath>
         <includes>
           <include>*.jks</include>
-          <include>*.p12</include>
         </includes>
       </testResource>
     </testResources>
diff --git a/airavata-api/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java b/airavata-api/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java
index b9ef934feb..30601367bf 100644
--- a/airavata-api/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java
+++ b/airavata-api/src/main/java/org/apache/airavata/api/client/AiravataClientFactory.java
@@ -95,7 +95,7 @@ public class AiravataClientFactory {
         Airavata.Client apiClient = createAiravataSecureClient(
                 "apidev.scigap.org",
                 9930,
-                "/Users/eromaabeysinghe/development/local-airavata/airavata/dev-tools/ansible/inventories/scigap/production/files/client_truststore.jks",
+                "/Users/eromaabeysinghe/development/local-airavata/airavata/dev-tools/ansible/inventories/scigap/production/files/airavata.jks",
                 "airavata",
                 10000);
 
diff --git a/airavata-api/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java b/airavata-api/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
index d4846fcc58..83705ae885 100644
--- a/airavata-api/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
+++ b/airavata-api/src/main/java/org/apache/airavata/service/profile/iam/admin/services/core/impl/TenantManagementKeycloakImpl.java
@@ -896,9 +896,9 @@ public class TenantManagementKeycloakImpl implements TenantManagementInterface {
     public static void main(String[] args) throws IamAdminServicesException, ApplicationSettingsException {
         TenantManagementKeycloakImpl tenantManagementKeycloak = new TenantManagementKeycloakImpl();
         // If testing with self-signed certificate, load certificate into
-        // modules/configuration/server/src/main/resources/client_truststore.jks and uncomment the following
+        // modules/configuration/server/src/main/resources/airavata.jks and uncomment the following
         // ServerSettings.setSetting("trust.store",
-        // "./modules/configuration/server/src/main/resources/client_truststore.jks");
+        // "./modules/configuration/server/src/main/resources/airavata.jks");
         // ServerSettings.setSetting("trust.store.password", "airavata");
         ServerSettings.setSetting("iam.server.url", "");
         String accessToken = "";
diff --git a/airavata-api/src/main/java/org/apache/airavata/service/security/KeyCloakSecurityManager.java b/airavata-api/src/main/java/org/apache/airavata/service/security/KeyCloakSecurityManager.java
index 8c527d2f13..b60dda2faf 100644
--- a/airavata-api/src/main/java/org/apache/airavata/service/security/KeyCloakSecurityManager.java
+++ b/airavata-api/src/main/java/org/apache/airavata/service/security/KeyCloakSecurityManager.java
@@ -576,9 +576,9 @@ public class KeyCloakSecurityManager implements AiravataSecurityManager {
 
     public static void main(String[] args) throws AiravataSecurityException, ApplicationSettingsException {
         // If testing with self-signed certificate, load certificate into
-        // modules/configuration/server/src/main/resources/client_truststore.jks and uncomment the following
+        // modules/configuration/server/src/main/resources/airavata.jks and uncomment the following
         // ServerSettings.setSetting("trust.store",
-        // "./modules/configuration/server/src/main/resources/client_truststore.jks");
+        // "./modules/configuration/server/src/main/resources/airavata.jks");
         // ServerSettings.setSetting("trust.store.password", "airavata");
         KeyCloakSecurityManager keyCloakSecurityManager = new KeyCloakSecurityManager();
         final String tokenURL = "...";
diff --git a/airavata-api/src/main/resources/airavata-client.properties b/airavata-api/src/main/resources/airavata-client.properties
index 4942243247..4bdb489b1f 100644
--- a/airavata-api/src/main/resources/airavata-client.properties
+++ b/airavata-api/src/main/resources/airavata-client.properties
@@ -49,7 +49,7 @@ credential.store.jdbc.user=root
 credential.store.jdbc.validationQuery=SELECT 1 from CONFIGURATION
 credential.store.keystore.alias=airavata
 credential.store.keystore.password=airavata
-credential.store.keystore.url=keystores/airavata_sym.jks
+credential.store.keystore.url=keystores/airavata.jks
 credential.store.server.host=localhost
 credential.store.server.port=8960
 credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer
@@ -229,7 +229,7 @@ TLS.client.timeout=10000
 TLS.enabled=true
 
 trust.store.password=airavata
-trust.store=keystores/client_truststore.jks
+trust.store=keystores/airavata.jks
 
 usage.reporting.endpoint=https://xsede-xdcdb-api.xsede.org/gateway/v2/job_attributes
 usage.reporting.key=CHANGE_ME
diff --git a/airavata-api/src/main/resources/airavata-server.properties b/airavata-api/src/main/resources/airavata-server.properties
index 4942243247..4bdb489b1f 100644
--- a/airavata-api/src/main/resources/airavata-server.properties
+++ b/airavata-api/src/main/resources/airavata-server.properties
@@ -49,7 +49,7 @@ credential.store.jdbc.user=root
 credential.store.jdbc.validationQuery=SELECT 1 from CONFIGURATION
 credential.store.keystore.alias=airavata
 credential.store.keystore.password=airavata
-credential.store.keystore.url=keystores/airavata_sym.jks
+credential.store.keystore.url=keystores/airavata.jks
 credential.store.server.host=localhost
 credential.store.server.port=8960
 credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer
@@ -229,7 +229,7 @@ TLS.client.timeout=10000
 TLS.enabled=true
 
 trust.store.password=airavata
-trust.store=keystores/client_truststore.jks
+trust.store=keystores/airavata.jks
 
 usage.reporting.endpoint=https://xsede-xdcdb-api.xsede.org/gateway/v2/job_attributes
 usage.reporting.key=CHANGE_ME
diff --git a/airavata-api/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java b/airavata-api/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java
index dd6fddc3e0..85a09c4416 100644
--- a/airavata-api/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java
+++ b/airavata-api/src/test/java/org/apache/airavata/common/utils/SecurityUtilTest.java
@@ -35,7 +35,7 @@ public class SecurityUtilTest {
     @Test
     public void testEncryptString() throws Exception {
 
-        URI uri = this.getClass().getClassLoader().getResource("mykeystore.jks").toURI();
+        URI uri = this.getClass().getClassLoader().getResource("airavata.jks").toURI();
 
         assert uri != null;
 
@@ -50,7 +50,7 @@ public class SecurityUtilTest {
     @Test
     public void testEncryptBytes() throws Exception {
 
-        URI uri = this.getClass().getClassLoader().getResource("mykeystore.jks").toURI();
+        URI uri = this.getClass().getClassLoader().getResource("airavata.jks").toURI();
 
         assert uri != null;
 
@@ -64,7 +64,7 @@ public class SecurityUtilTest {
 
     @Test
     public void testLoadKeyStore() throws Exception {
-        InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("mykeystore.jks");
+        InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("airavata.jks");
 
         KeyStore ks = SecurityUtil.loadKeyStore(inputStream, "jceks", new TestKeyStoreCallback());
         assertNotNull(ks);
@@ -72,7 +72,7 @@ public class SecurityUtilTest {
 
     @Test
     public void testLoadKeyStoreFromFile() throws Exception {
-        URI uri = this.getClass().getClassLoader().getResource("mykeystore.jks").toURI();
+        URI uri = this.getClass().getClassLoader().getResource("airavata.jks").toURI();
 
         assert uri != null;
         KeyStore ks = SecurityUtil.loadKeyStore(uri.getPath(), "jceks", new TestKeyStoreCallback());
diff --git a/airavata-api/src/test/java/org/apache/airavata/credential/store/cpi/SSHSummaryTest/SSHSummaryTest.java b/airavata-api/src/test/java/org/apache/airavata/credential/store/cpi/SSHSummaryTest/SSHSummaryTest.java
index 40512bb5f1..a6e9e56730 100644
--- a/airavata-api/src/test/java/org/apache/airavata/credential/store/cpi/SSHSummaryTest/SSHSummaryTest.java
+++ b/airavata-api/src/test/java/org/apache/airavata/credential/store/cpi/SSHSummaryTest/SSHSummaryTest.java
@@ -119,7 +119,7 @@ public class SSHSummaryTest extends DatabaseTestCases {
         String baseDirectory = System.getProperty("credential.module.directory");
 
         String keyStorePath =
-                "src" + File.separator + "test" + File.separator + "resources" + File.separator + "keystore.jks";
+                "src" + File.separator + "test" + File.separator + "resources" + File.separator + "airavata.jks";
 
         if (baseDirectory != null) {
             keyStorePath = baseDirectory + File.separator + keyStorePath;
diff --git a/airavata-api/src/test/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAOTest.java b/airavata-api/src/test/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAOTest.java
index 8b3f6648e5..f33a823d34 100644
--- a/airavata-api/src/test/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAOTest.java
+++ b/airavata-api/src/test/java/org/apache/airavata/credential/store/store/impl/db/CredentialsDAOTest.java
@@ -126,7 +126,7 @@ public class CredentialsDAOTest extends DatabaseTestCases {
         String baseDirectory = System.getProperty("credential.module.directory");
 
         String keyStorePath =
-                "src" + File.separator + "test" + File.separator + "resources" + File.separator + "keystore.jks";
+                "src" + File.separator + "test" + File.separator + "resources" + File.separator + "airavata.jks";
 
         if (baseDirectory != null) {
             keyStorePath = baseDirectory + File.separator + keyStorePath;
@@ -245,7 +245,7 @@ public class CredentialsDAOTest extends DatabaseTestCases {
     @Test
     public void testSerializationWithEncryption() throws CredentialStoreException, URISyntaxException {
 
-        URI uri = this.getClass().getClassLoader().getResource("mykeystore.jks").toURI();
+        URI uri = this.getClass().getClassLoader().getResource("airavata.jks").toURI();
         String secretKeyAlias = "mykey";
 
         assert uri != null;
diff --git a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
index 15c5d33615..c5a85fa76b 100644
--- a/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
+++ b/dev-tools/ansible/inventories/scigap/develop/group_vars/all/vars.yml
@@ -97,9 +97,9 @@ default_gateway: "default"
 # Credential and keystore related variables
 keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 keystore_passwd: "{{ vault_keystore_passwd }}"
-# client_truststore_src_path: "{{inventory_dir}}/files/client_truststore.jks"
+# client_truststore_src_path: "{{inventory_dir}}/files/airavata.jks"
 # client_truststore_passwd: "{{ vault_client_truststore_passwd }}"
-cred_keystore_src_path: "{{inventory_dir}}/files/airavata_sym.jks"
+cred_keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 cred_keystore_passwd: "{{ vault_cred_keystore_passwd }}"
 cred_keystore_alias: "airavata"
 cred_store_server_host: "{{ groups['api-orch'][0] }}"
@@ -138,7 +138,7 @@ profile_service_host: "{{ groups['api-orch'][0] }}"
 profile_service_port: 8962
 
 # Keycloak
-keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/keycloak.jks"
+keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/airavata.jks"
 keycloak_ssl_keystore_password: "{{ vault_keycloak_ssl_keystore_password }}"
 keycloak_db_host: "{{ groups['database'][0] }}"
 keycloak_db_username: "keycloak"
diff --git a/dev-tools/ansible/inventories/scigap/production/group_vars/all/vars.yml b/dev-tools/ansible/inventories/scigap/production/group_vars/all/vars.yml
index 284ebb0082..bf9eb0b379 100644
--- a/dev-tools/ansible/inventories/scigap/production/group_vars/all/vars.yml
+++ b/dev-tools/ansible/inventories/scigap/production/group_vars/all/vars.yml
@@ -91,11 +91,11 @@ registry_port: 8970
 default_gateway: "default"
 
 # Credential and keystore related variables
-keystore_src_path: "{{inventory_dir}}/files/letsencrypt_apiprod.jks"
+keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 keystore_passwd: "{{ vault_keystore_passwd }}"
-# client_truststore_src_path: "{{inventory_dir}}/files/client_truststore.jks"
+# client_truststore_src_path: "{{inventory_dir}}/files/airavata.jks"
 # client_truststore_passwd: "{{ vault_client_truststore_passwd }}"
-cred_keystore_src_path: "{{inventory_dir}}/files/airavata_sym.jks"
+cred_keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 cred_keystore_passwd: "{{ vault_cred_keystore_passwd }}"
 cred_keystore_alias: "airavata"
 cred_store_server_host: "{{ groups['api-orch'][0] }}"
@@ -127,7 +127,7 @@ profile_service_host: "{{ groups['api-orch'][0] }}"
 profile_service_port: 8962
 
 # Keycloak
-keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/keycloak.jks"
+keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/airavata.jks"
 keycloak_ssl_keystore_password: "{{ vault_keycloak_ssl_keystore_password }}"
 keycloak_db_host: "localhost"
 keycloak_db_username: "keycloak"
diff --git a/dev-tools/ansible/inventories/scigap/staging/group_vars/all/vars.yml b/dev-tools/ansible/inventories/scigap/staging/group_vars/all/vars.yml
index 3e576c1e38..55aacfa900 100644
--- a/dev-tools/ansible/inventories/scigap/staging/group_vars/all/vars.yml
+++ b/dev-tools/ansible/inventories/scigap/staging/group_vars/all/vars.yml
@@ -91,9 +91,9 @@ default_gateway: "default"
 # Credential and keystore related variables
 keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 keystore_passwd: "{{ vault_keystore_passwd }}"
-# client_truststore_src_path: "{{inventory_dir}}/files/client_truststore.jks"
+# client_truststore_src_path: "{{inventory_dir}}/files/airavata.jks"
 # client_truststore_passwd: "{{ vault_client_truststore_passwd }}"
-cred_keystore_src_path: "{{inventory_dir}}/files/airavata_sym.jks"
+cred_keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 cred_keystore_passwd: "{{ vault_cred_keystore_passwd }}"
 cred_keystore_alias: "airavata"
 cred_store_server_host: "{{ groups['api-orch'][0] }}"
@@ -133,7 +133,7 @@ profile_service_host: "{{ groups['api-orch'][0] }}"
 profile_service_port: 8962
 
 # Keycloak
-keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/keycloak.jks"
+keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/airavata.jks"
 keycloak_ssl_keystore_password: "{{ vault_keycloak_ssl_keystore_password }}"
 keycloak_db_host: "localhost"
 keycloak_db_username: "keycloak"
diff --git a/dev-tools/ansible/inventories/scigap/testing/group_vars/all/vars.yml b/dev-tools/ansible/inventories/scigap/testing/group_vars/all/vars.yml
index 62b12a7e06..ba320c19c4 100644
--- a/dev-tools/ansible/inventories/scigap/testing/group_vars/all/vars.yml
+++ b/dev-tools/ansible/inventories/scigap/testing/group_vars/all/vars.yml
@@ -89,9 +89,9 @@ default_gateway: "default"
 # Credential and keystore related variables
 keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 keystore_passwd: "{{ vault_keystore_passwd }}"
-client_truststore_src_path: "{{inventory_dir}}/files/client_truststore.jks"
+client_truststore_src_path: "{{inventory_dir}}/files/airavata.jks"
 client_truststore_passwd: "{{ vault_client_truststore_passwd }}"
-cred_keystore_src_path: "{{inventory_dir}}/files/airavata_sym.jks"
+cred_keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 cred_keystore_passwd: "{{ vault_cred_keystore_passwd }}"
 cred_keystore_alias: "airavata"
 cred_store_server_host: "{{ groups['api-orch'][0] }}"
@@ -122,7 +122,7 @@ profile_service_host: "{{ groups['api-orch'][0] }}"
 profile_service_port: 8962
 
 # Keycloak
-keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/keycloak.jks"
+keycloak_ssl_keystore_file: "{{ inventory_dir }}/files/airavata.jks"
 keycloak_ssl_keystore_password: "{{ vault_keycloak_ssl_keystore_password }}"
 keycloak_db_host: "localhost"
 keycloak_db_username: "keycloak"
diff --git a/dev-tools/ansible/inventories/standalone/group_vars/all/vars.yml b/dev-tools/ansible/inventories/standalone/group_vars/all/vars.yml
index 0fdf7913e0..d1645bb21f 100644
--- a/dev-tools/ansible/inventories/standalone/group_vars/all/vars.yml
+++ b/dev-tools/ansible/inventories/standalone/group_vars/all/vars.yml
@@ -101,9 +101,9 @@ default_registry_password: "123456"
 # Credential and keystore related variables
 keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 keystore_passwd: "password"
-client_truststore_src_path: "{{inventory_dir}}/files/client_truststore.jks"
+client_truststore_src_path: "{{inventory_dir}}/files/airavata.jks"
 client_truststore_passwd: "password"
-cred_keystore_src_path: "{{inventory_dir}}/files/cred_store.jks"
+cred_keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 cred_keystore_passwd: "123456"
 cred_keystore_alias: "seckey"
 cred_store_server_host: "{{ groups['api-orch'][0] }}"
diff --git a/dev-tools/ansible/inventories/template/group_vars/all/vars.yml b/dev-tools/ansible/inventories/template/group_vars/all/vars.yml
index c9f697ed31..240f2056d6 100644
--- a/dev-tools/ansible/inventories/template/group_vars/all/vars.yml
+++ b/dev-tools/ansible/inventories/template/group_vars/all/vars.yml
@@ -97,9 +97,9 @@ default_gateway: "default"
 # Credential and keystore related variables
 keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 keystore_passwd: "airavata"
-client_truststore_src_path: "{{inventory_dir}}/files/client_truststore.jks"
+client_truststore_src_path: "{{inventory_dir}}/files/airavata.jks"
 client_truststore_passwd: "airavata"
-cred_keystore_src_path: "{{inventory_dir}}/files/airavata_sym.jks"
+cred_keystore_src_path: "{{inventory_dir}}/files/airavata.jks"
 cred_keystore_passwd: "airavata"
 cred_keystore_alias: "airavata"
 cred_store_server_host: "{{ groups['api-orch'][0] }}"
diff --git a/dev-tools/ansible/roles/common/defaults/main.yml b/dev-tools/ansible/roles/common/defaults/main.yml
index 3337d48023..bc2e4d0909 100644
--- a/dev-tools/ansible/roles/common/defaults/main.yml
+++ b/dev-tools/ansible/roles/common/defaults/main.yml
@@ -19,7 +19,7 @@
 #
 
 keystore_src_path: "airavata.jks"
-cred_keystore_src_path: "airavata_sym.jks"
+cred_keystore_src_path: "airavata.jks"
 
 apache_maven_version: "apache-maven-3.6.3"
 apache_maven_url: "https://www-eu.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz"
diff --git a/dev-tools/ansible/roles/common/tasks/main.yml b/dev-tools/ansible/roles/common/tasks/main.yml
index 8681c29412..d431f798c0 100644
--- a/dev-tools/ansible/roles/common/tasks/main.yml
+++ b/dev-tools/ansible/roles/common/tasks/main.yml
@@ -91,7 +91,7 @@
         dest="{{ keystores_location }}/{{ keystore_src_path | basename }}"
         owner={{ user }} group={{ group }}
 
-- name: Transfer airavata_sym.jks KeyStore file
+- name: Transfer airavata.jks KeyStore file
   copy: src={{ cred_keystore_src_path }}
         dest="{{ keystores_location }}/{{ cred_keystore_src_path | basename }}"
         owner={{ user }} group={{ group }}
diff --git a/dev-tools/ansible/roles/keycloak/defaults/main.yml b/dev-tools/ansible/roles/keycloak/defaults/main.yml
index a6d0d6bf82..42cb80903f 100644
--- a/dev-tools/ansible/roles/keycloak/defaults/main.yml
+++ b/dev-tools/ansible/roles/keycloak/defaults/main.yml
@@ -23,8 +23,8 @@ keycloak_version: "2.5.4.Final"
 keycloak_downlaod_url: "https://downloads.jboss.org/keycloak/{{keycloak_version}}/keycloak-{{keycloak_version}}.tar.gz"
 keycloak_install_dir: "keycloak-{{keycloak_version}}"
 keycloak_db_connector_name: "mysql-connector-java-5.1.41"
-# keycloak_ssl_keystore_file: "keycloak.jks"
-# keycloak_ssl_keystore_file_name: "keycloak.jks"
+# keycloak_ssl_keystore_file: "airavata.jks"
+# keycloak_ssl_keystore_file_name: "airavata.jks"
 # keycloak_ssl_keystore_password: "Airavata"
 mysql_db_connector_download_url: "https://dev.mysql.com/get/Downloads/Connector-J/{{keycloak_db_connector_name}}.tar.gz"
 keycloak_master_account_username: "username"
diff --git a/dev-tools/deployment-scripts/.gitignore b/dev-tools/deployment-scripts/.gitignore
new file mode 100644
index 0000000000..4dc51e82b2
--- /dev/null
+++ b/dev-tools/deployment-scripts/.gitignore
@@ -0,0 +1 @@
+vault/
diff --git a/dev-tools/deployment-scripts/distribution_backup.sh b/dev-tools/deployment-scripts/distribution_backup.sh
new file mode 100644
index 0000000000..b66eced6eb
--- /dev/null
+++ b/dev-tools/deployment-scripts/distribution_backup.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+log() {
+  echo "$(date '+%Y-%m-%d %H:%M:%S') - $1"
+}
+
+# ================================
+# Create the Backup Directory
+# ================================
+BACKUP_DIR="./backup/$(date +%Y-%m-%d)"
+mkdir -p $BACKUP_DIR
+
+# ================================
+# Backup the Distribution
+# ================================
+log "Backing up the Distribution..."
+cp -r ./apache-airavata-api-server-0.21-SNAPSHOT $BACKUP_DIR/
+cp -r ./apache-airavata-agent-service-0.21-SNAPSHOT $BACKUP_DIR/
+cp -r ./apache-airavata-research-service-0.21-SNAPSHOT $BACKUP_DIR/
+log "Distribution backed up."
diff --git a/dev-tools/deployment-scripts/distribution_update.sh b/dev-tools/deployment-scripts/distribution_update.sh
new file mode 100644
index 0000000000..06b9775496
--- /dev/null
+++ b/dev-tools/deployment-scripts/distribution_update.sh
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+log() {
+  echo "$(date '+%Y-%m-%d %H:%M:%S') - $1"
+}
+
+# ================================
+# Update the Distribution
+# ================================
+log "Updating the API Server..."
+rm -rf ./apache-airavata-api-server-0.21-SNAPSHOT
+tar -xvf ./distribution/apache-airavata-api-server-0.21-SNAPSHOT.tar.gz -C .
+log "API Server updated."
+
+log "Updating the Agent Service..."
+rm -rf ./apache-airavata-agent-service-0.21-SNAPSHOT
+tar -xvf ./distribution/apache-airavata-agent-service-0.21-SNAPSHOT.tar.gz -C .
+log "Agent Service updated."
+
+log "Updating the Research Service..."
+rm -rf ./apache-airavata-research-service-0.21-SNAPSHOT
+tar -xvf ./distribution/apache-airavata-research-service-0.21-SNAPSHOT.tar.gz -C .
+log "Research Service updated."
+
+# ================================
+# Update the config files
+# ================================
+cp vault/airavata-server.properties ./apache-airavata-api-server-0.21-SNAPSHOT/conf/airavata-server.properties
+cp vault/airavata.jks ./apache-airavata-api-server-0.21-SNAPSHOT/conf/airavata.jks
+cp vault/log4j2.xml ./apache-airavata-api-server-0.21-SNAPSHOT/conf/log4j2.xml
+log "API Server config files updated."
+
+cp vault/application-agent-service.yml ./apache-airavata-agent-service-0.21-SNAPSHOT/conf/application.yml
+cp vault/airavata.jks ./apache-airavata-agent-service-0.21-SNAPSHOT/conf/airavata.jks
+cp vault/log4j2.xml ./apache-airavata-agent-service-0.21-SNAPSHOT/conf/log4j2.xml
+log "Agent Service config files updated."
+
+cp vault/application-research-service.yml ./apache-airavata-research-service-0.21-SNAPSHOT/conf/application.yml
+cp vault/airavata.jks ./apache-airavata-research-service-0.21-SNAPSHOT/conf/airavata.jks
+cp vault/log4j2.xml ./apache-airavata-research-service-0.21-SNAPSHOT/conf/log4j2.xml
+log "Research Service config files updated."
diff --git a/dev-tools/deployment-scripts/services_down.sh b/dev-tools/deployment-scripts/services_down.sh
new file mode 100644
index 0000000000..d6bed53a9f
--- /dev/null
+++ b/dev-tools/deployment-scripts/services_down.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+log() {
+  echo "$(date '+%Y-%m-%d %H:%M:%S') - $1"
+}
+
+# ================================
+# Shutdown the API Server
+# ================================
+log "Stopping the API Services..."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/airavata-server.sh -d stop -f api-orch
+log "Orchestrator stopped."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/controller.sh -d stop
+log "Controller stopped."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/participant.sh -d stop
+log "Participant stopped."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/pre-wm.sh -d stop
+log "Pre-Workflow Manager stopped."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/post-wm.sh -d stop
+log "Post-Workflow Manager stopped."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/email-monitor.sh -d stop
+log "Email Monitor stopped."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/realtime-monitor.sh -d stop
+log "Realtime Monitor stopped."
+
+# ================================
+# Shutdown the Agent Service
+# ================================
+log "Stopping the Agent Service..."
+./apache-airavata-agent-service-0.21-SNAPSHOT/bin/agent-service.sh -d stop
+log "Agent Service stopped."
+
+# ================================
+# Shutdown the Research Service
+# ================================
+log "Stopping the Research Service..."
+./apache-airavata-research-service-0.21-SNAPSHOT/bin/research-service.sh -d stop
+log "Research Service stopped."
diff --git a/dev-tools/deployment-scripts/services_up.sh b/dev-tools/deployment-scripts/services_up.sh
new file mode 100644
index 0000000000..8a639ba958
--- /dev/null
+++ b/dev-tools/deployment-scripts/services_up.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+log() {
+  echo "$(date '+%Y-%m-%d %H:%M:%S') - $1"
+}
+
+# ================================
+# Start the API Server
+# ================================
+log "Starting the API Services..."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/airavata-server.sh -d start api-orch
+log "Orchestrator started."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/controller.sh -d start
+log "Controller started."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/participant.sh -d start
+log "Participant started."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/pre-wm.sh -d start
+log "Pre-Workflow Manager started."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/post-wm.sh -d start
+log "Post-Workflow Manager started."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/email-monitor.sh -d start
+log "Email Monitor started."
+./apache-airavata-api-server-0.21-SNAPSHOT/bin/realtime-monitor.sh -d start
+log "Realtime Monitor started."
+
+# ================================
+# Start the Agent Service
+# ================================
+log "Starting the Agent Service..."
+./apache-airavata-agent-service-0.21-SNAPSHOT/bin/agent-service.sh -d start
+log "Agent Service started."
+
+# ================================
+# Start the Research Service
+# ================================
+log "Starting the Research Service..."
+./apache-airavata-research-service-0.21-SNAPSHOT/bin/research-service.sh -d start
+log "Research Service started."
diff --git a/dev-tools/load-client/src/main/assembly/load-client-bin-assembly.xml b/dev-tools/load-client/src/main/assembly/load-client-bin-assembly.xml
index eb6d50c2aa..dcfa4bf2b7 100644
--- a/dev-tools/load-client/src/main/assembly/load-client-bin-assembly.xml
+++ b/dev-tools/load-client/src/main/assembly/load-client-bin-assembly.xml
@@ -43,7 +43,7 @@
       <outputDirectory>bin</outputDirectory>
       <fileMode>777</fileMode>
       <includes>
-        <include>client_truststore.jks</include>
+        <include>airavata.jks</include>
       </includes>
     </fileSet>
     <fileSet>
diff --git a/dev-tools/load-client/src/main/java/org/apache/airavata/tools/load/SecurityManager.java b/dev-tools/load-client/src/main/java/org/apache/airavata/tools/load/SecurityManager.java
index f921c9023a..7943258bda 100644
--- a/dev-tools/load-client/src/main/java/org/apache/airavata/tools/load/SecurityManager.java
+++ b/dev-tools/load-client/src/main/java/org/apache/airavata/tools/load/SecurityManager.java
@@ -29,7 +29,7 @@ import javax.net.ssl.*;
 
 public class SecurityManager {
 
-    private String trustStoreName = "client_truststore.jks";
+    private String trustStoreName = "airavata.jks";
     private String trustStorePassword = "airavata";
 
     public void loadCertificate(String host, int port)
diff --git a/examples/airavata-api-java-client-samples/src/main/java/org/apache/airavata/client/secure/client/Properties.java b/examples/airavata-api-java-client-samples/src/main/java/org/apache/airavata/client/secure/client/Properties.java
index 539b56ae3d..81ceddcea7 100644
--- a/examples/airavata-api-java-client-samples/src/main/java/org/apache/airavata/client/secure/client/Properties.java
+++ b/examples/airavata-api-java-client-samples/src/main/java/org/apache/airavata/client/secure/client/Properties.java
@@ -26,7 +26,7 @@ public class Properties {
 
     // trust store parameters
     public static final String TRUST_STORE_PATH =
-            "../../../../../airavata/modules/configuration/server/src/main/resources/client_truststore.jks";
+            "../../../../../airavata/modules/configuration/server/src/main/resources/airavata.jks";
     public static final String TRUST_STORE_PASSWORD = "airavata";
 
     public static String oauthAuthzServerURL = "https://localhost:9443/services/";
diff --git a/keystores/client_truststore.jks b/keystores/client_truststore.jks
deleted file mode 100644
index d163c6d4f1..0000000000
Binary files a/keystores/client_truststore.jks and /dev/null differ
diff --git a/keystores/generate_keystore.sh b/keystores/generate_keystore.sh
index dfb46d8f3e..f701bab6d1 100755
--- a/keystores/generate_keystore.sh
+++ b/keystores/generate_keystore.sh
@@ -1,14 +1,9 @@
 #!/bin/bash
 
 # Remove existing key stores
-rm -f airavata.jks client_truststore.jks
+rm -f airavata.jks
 
 # Generate a PKCS12 keystore with a self-signed certificate
 keytool -genkey -keyalg RSA -alias selfsigned -keystore airavata.jks -storetype pkcs12 -storepass airavata -validity 360 -keysize 2048 \
   -dname "CN=airavata.host, OU=airavata.host, O=airavata.host, L=airavata.host, ST=airavata.host, C=airavata.host" \
   -ext san=dns:airavata.host
-
-# Also generate a JKS keystore with that certificate (for backward-compatibility)
-keytool -importkeystore -noprompt \
-  -srckeystore airavata.jks -srcstoretype pkcs12 -srcstorepass airavata \
-  -destkeystore client_truststore.jks -deststoretype jks -deststorepass airavata
diff --git a/modules/agent-framework/agent-service/pom.xml b/modules/agent-framework/agent-service/pom.xml
index ae7cc8b027..76a26f3cd4 100644
--- a/modules/agent-framework/agent-service/pom.xml
+++ b/modules/agent-framework/agent-service/pom.xml
@@ -191,7 +191,6 @@ under the License.
         <targetPath>keystores</targetPath>
         <includes>
           <include>*.jks</include>
-          <include>*.p12</include>
         </includes>
       </resource>
     </resources>
diff --git a/modules/agent-framework/agent-service/src/main/assembly/agent-service-bin-assembly.xml b/modules/agent-framework/agent-service/src/main/assembly/agent-service-bin-assembly.xml
index 89b72e5b82..12747805f6 100644
--- a/modules/agent-framework/agent-service/src/main/assembly/agent-service-bin-assembly.xml
+++ b/modules/agent-framework/agent-service/src/main/assembly/agent-service-bin-assembly.xml
@@ -43,7 +43,7 @@
       <outputDirectory>conf</outputDirectory>
       <includes>
         <include>application.yml</include>
-        <include>truststore.jks</include>
+        <include>airavata.jks</include>
         <include>log4j2.xml</include>
       </includes>
     </fileSet>
diff --git a/modules/agent-framework/agent-service/src/main/resources/distribution/bin/agent-service-daemon.sh b/modules/agent-framework/agent-service/src/main/resources/distribution/bin/agent-service-daemon.sh
deleted file mode 100755
index b5d8f699e2..0000000000
--- a/modules/agent-framework/agent-service/src/main/resources/distribution/bin/agent-service-daemon.sh
+++ /dev/null
@@ -1,112 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="logo.txt"
-
-JAVA_OPTS="-Dairavata.server.truststore.path=${AIRAVATA_HOME}/conf/truststore.jks -Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-daemon.out"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Connection Service"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.agent.connection.service.AgentServiceApplication ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.agent.connection.service.AgentServiceApplication ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: agent-service-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
\ No newline at end of file
diff --git a/modules/agent-framework/agent-service/src/main/resources/distribution/bin/agent-service.sh b/modules/agent-framework/agent-service/src/main/resources/distribution/bin/agent-service.sh
index 11bd1d16c2..d3289c694c 100755
--- a/modules/agent-framework/agent-service/src/main/resources/distribution/bin/agent-service.sh
+++ b/modules/agent-framework/agent-service/src/main/resources/distribution/bin/agent-service.sh
@@ -17,54 +17,171 @@
 # specific language governing permissions and limitations
 # under the License.
 
-. `dirname $0`/setenv.sh
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="agent-service"
+MAIN_CLASS="org.apache.airavata.agent.connection.service.AgentServiceApplication"
+
 # Capture user's working dir before changing directory
 CWD="$PWD"
 cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="logo.txt"
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
 
-JAVA_OPTS="-Dairavata.server.truststore.path=${AIRAVATA_HOME}/conf/truststore.jks -Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+JAVA_OPTS="-Dairavata.server.truststore.path=${AIRAVATA_HOME}/conf/airavata.jks -Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
 AIRAVATA_COMMAND=""
 EXTRA_ARGS=""
 SERVERS=""
 IS_SUBSET=false
 SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata.out"
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
 LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
 
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: connection-service.sh"
+# Function to start the service
+start_service() {
+  if [ "$DAEMON_MODE" = true ]; then
+    echo "Starting $SERVICE_NAME in daemon mode..."
+    if [ ! -f $PID_PATH_NAME ]; then
+      nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+      echo $! >$PID_PATH_NAME
+      echo "$SERVICE_NAME started ..."
+    else
+      echo "$SERVICE_NAME is already running ..."
+    fi
+  else
+    echo "Starting $SERVICE_NAME in interactive mode..."
+    java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $*
+  fi
+}
+
+# Function to stop the service
+stop_service() {
+  if [ -f $PID_PATH_NAME ]; then
+    PID=$(cat $PID_PATH_NAME)
+    echo "$SERVICE_NAME stopping ..."
+    kill $PID
+    RETRY=0
+    while kill -0 $PID 2>/dev/null; do
+      echo "Waiting for the process $PID to be stopped"
+      RETRY=$(expr ${RETRY} + 1)
+      if [ "${RETRY}" -gt "20" ]; then
+        echo "Forcefully killing the process as it is not responding ..."
+        kill -9 $PID
+      fi
+      sleep 1
+    done
+    echo "$SERVICE_NAME stopped ..."
+    rm $PID_PATH_NAME
+  else
+    echo "$SERVICE_NAME is not running ..."
+  fi
+}
 
-            echo "command options:"
-            echo "  -xdebug             Start Connection Service under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
+# Function to restart the service
+restart_service() {
+  if [ -f $PID_PATH_NAME ]; then
+    PID=$(cat $PID_PATH_NAME)
+    echo "$SERVICE_NAME stopping ..."
+    kill $PID
+    RETRY=0
+    while kill -0 $PID 2>/dev/null; do
+      echo "Waiting for the process $PID to be stopped"
+      RETRY=$(expr ${RETRY} + 1)
+      if [ "${RETRY}" -gt "20" ]; then
+        echo "Forcefully killing the process as it is not responding ..."
+        kill -9 $PID
+      fi
+      sleep 1
+    done
+    echo "$SERVICE_NAME stopped ..."
+    rm $PID_PATH_NAME
+  fi
+  start_service $*
+}
+
+# Function to show help
+show_help() {
+  echo "Usage: agent-service.sh [options] [command]"
+  echo ""
+  echo "Commands (daemon mode only):"
+  echo "  start               Start server in daemon mode"
+  echo "  stop                Stop server running in daemon mode"
+  echo "  restart             Restart server in daemon mode"
+  echo ""
+  echo "Options:"
+  echo "  -d                  Run in daemon mode"
+  echo "  -xdebug             Start Connection Service under JPDA debugger"
+  echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+  echo "  -h                  Display this help and exit"
+  echo ""
+  echo "Examples:"
+  echo "  agent-service.sh                    # Run in interactive mode"
+  echo "  agent-service.sh -d start           # Start in daemon mode"
+  echo "  agent-service.sh -d stop            # Stop daemon"
+  echo "  agent-service.sh -d restart         # Restart daemon"
+  echo "  agent-service.sh -xdebug            # Run with debugger in interactive mode"
+}
+
+# parse command arguments
+for var in "$@"; do
+  case ${var} in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      start_service $*
+      exit 0
+    else
+      echo "Error: 'start' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      stop_service
+      exit 0
+    else
+      echo "Error: 'stop' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      restart_service $*
+      exit 0
+    else
+      echo "Error: 'restart' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  -h)
+    show_help
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} ${var}"
+    shift
+    ;;
+  esac
 done
 
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.agent.connection.service.AgentServiceApplication ${AIRAVATA_COMMAND} $*
\ No newline at end of file
+# If no specific command was given, run in interactive mode
+if [ "$DAEMON_MODE" = false ]; then
+  java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $*
+fi
diff --git a/modules/agent-framework/agent-service/src/main/resources/distribution/conf/application.yml b/modules/agent-framework/agent-service/src/main/resources/distribution/conf/application.yml
index 1ec3caaf72..30ebe99cf7 100644
--- a/modules/agent-framework/agent-service/src/main/resources/distribution/conf/application.yml
+++ b/modules/agent-framework/agent-service/src/main/resources/distribution/conf/application.yml
@@ -45,7 +45,7 @@ airavata:
     url: scigap02.sciencegateways.iu.edu
     port: 9930
     truststore:
-      path: /Users/lahiruj/Projects/airavata/lahiruj/modules/agent-framework/agent-service/src/main/resources/trustore.jks
+      path: /Users/lahiruj/Projects/airavata/lahiruj/modules/agent-framework/agent-service/src/main/resources/airavata.jks
   storageResourceId: gf4.ucs.indiana.edu_61552681-96f0-462a-a36c-a62a010bffc6
   cluster:
     applicationInterfaceId:
diff --git a/modules/distribution/src/main/assembly/api-server-bin-assembly.xml b/modules/distribution/src/main/assembly/api-server-bin-assembly.xml
index 226281cae8..89f361dd71 100644
--- a/modules/distribution/src/main/assembly/api-server-bin-assembly.xml
+++ b/modules/distribution/src/main/assembly/api-server-bin-assembly.xml
@@ -50,8 +50,6 @@
       <outputDirectory>conf/keystores</outputDirectory>
       <includes>
         <include>*.jks</include>
-        <include>*.p12</include>
-        <include>*.pem</include>
       </includes>
     </fileSet>
 
@@ -78,7 +76,7 @@
 
     <!-- ********************** copy bin files ********************** -->
     <fileSet>
-      <directory>src/main/resources/api-server/bin</directory>
+      <directory>src/main/resources/distribution/bin</directory>
       <outputDirectory>bin</outputDirectory>
       <fileMode>777</fileMode>
       <includes>
@@ -89,7 +87,7 @@
 
     <!-- ********************** copy config files ********************** -->
     <fileSet>
-      <directory>src/main/resources/api-server/conf</directory>
+      <directory>src/main/resources/distribution/conf</directory>
       <outputDirectory>conf</outputDirectory>
       <includes>
         <include>*</include>
diff --git a/modules/distribution/src/main/docker/docker-compose.yml b/modules/distribution/src/main/docker/docker-compose.yml
index 1051ec8940..0d0db348ab 100644
--- a/modules/distribution/src/main/docker/docker-compose.yml
+++ b/modules/distribution/src/main/docker/docker-compose.yml
@@ -121,7 +121,7 @@ services:
       - job.notification.enable=true
       - job.notification.emailids=
       - job.notification.flags=abe
-      - credential.store.keystore.url=/opt/keystores/airavata_sym.jks
+      - credential.store.keystore.url=/opt/keystores/airavata.jks
       - credential.store.keystore.alias=airavata
       - credential.store.keystore.password=airavata
       - credential.store.jdbc.url=jdbc:mariadb://db:3306/credential_store
@@ -156,7 +156,7 @@ services:
       - TLS.client.timeout=10000
       - keystore.path=/opt/keystores/airavata.jks
       - keystore.password=airavata
-      - trust.store=/opt/keystores/client_truststore.jks
+      - trust.store=/opt/keystores/airavata.jks
       - trust.store.password=airavata
       - authz.cache.enabled=true
       - authz.cache.manager.class=org.apache.airavata.service.security.authzcache.DefaultAuthzCacheManager
diff --git a/modules/distribution/src/main/resources/api-server/bin/airavata-server-start.sh b/modules/distribution/src/main/resources/api-server/bin/airavata-server-start.sh
deleted file mode 100644
index 3aceb86d15..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/airavata-server-start.sh
+++ /dev/null
@@ -1,144 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_DAEMON_MODE=false
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-server.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-        ;;
-        -security)
-            JAVA_OPTS="${JAVA_OPTS} -Djava.security.manager -Djava.security.policy=${AIRAVATA_HOME}/conf/axis2.policy -Daxis2.home=${AIRAVATA_HOME}"
-            shift
-        ;;
-        -enableLegacyTLS)
-            # Enable TLS v1 and v1.1.  disableSystemPropertiesFile is needed
-            # because the system properties file takes precedence. See 'man update-crypto-policies' for more info.
-            JAVA_OPTS="${JAVA_OPTS} -Djava.security.policy=${AIRAVATA_HOME}/bin/enableLegacyTLS.security -Djava.security.disableSystemPropertiesFile=true"
-            shift
-        ;;
-	    apiserver | gfac | orchestrator | credentialstore | regserver)
-	        if [ -z ${SERVERS} ] ; then
-	            SERVERS="${var}"
-	        else
-	            SERVERS="${SERVERS},${var}"
-	        fi
-            shift
-        ;;
-        all | api-orch | execution )
-            IS_SUBSET=true
-            SUBSET="${var}"
-            shift
-            ;;
-        -d)
-	        IS_DAEMON_MODE=true
-	        shift
-	        ;;
-	    -nologo)
-	        LOGO=false
-            shift
-        ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: airavata-server-start.sh [server-name/s] [command-options]"
-            echo "Server names:"
-            echo "  apiserver           Start apiserver"
-            echo "  gfac                Start gfac server"
-            echo "  orchestrator        Start orchestrator server"
-            echo "  credentialstore     Start credentialstore server"
-            echo "  regserver           Start registry server"
-            echo "  all                 Start all servers in one JVM"
-
-            echo "command options:"
-	        echo "  -d                  Start server in daemon mode"
-            echo "  -xdebug             Start Airavata Server under JPDA debugger"
-            echo "  -nologo             Do not show airavata logo"
-            echo "  -security           Enable Java 2 security"
-	        echo "  --<key>[=<value>]   Server setting(s) to override or introduce (overrides values in airavata-server.properties)"
-	        echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-#Construct Airavata command arguments in proper order.
-if ${IS_SUBSET} ; then
-    AIRAVATA_COMMAND="--servers=${SUBSET} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
-else
-    if [ -z ${SERVERS} ] ; then
-        echo "You should provide at least one server component to start the airavata server. Please use -h option to get more details."
-        exit -1
-    else
-        AIRAVATA_COMMAND="--servers=${SERVERS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
-    fi
-fi
-
-#print logo file
-if ${LOGO} ; then
-	if [ -e ${LOGO_FILE} ]
-	then
-		cat ${LOGO_FILE}
-	fi
-fi
-
-
-if ${IS_DAEMON_MODE} ; then
-	echo "Starting airavata server/s in daemon mode..."
-	echo "Redirecting output to $LOG_FILE"
-	nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.server.ServerMain ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-else
-	java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.server.ServerMain ${AIRAVATA_COMMAND} $*
-fi
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/airavata-server-stop.sh b/modules/distribution/src/main/resources/api-server/bin/airavata-server-stop.sh
deleted file mode 100644
index 4d83bae7cf..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/airavata-server-stop.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-cd ${AIRAVATA_HOME}/bin
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-FORCE=false
-
-for var in "$@"
-do
-    case ${var} in
-    	-f | --force)
-	        FORCE=true
-            shift
-        ;;
-        -h)
-            echo "Usage: airavata-server-stop.sh [command-options]"
-            echo "command options:"
-	        echo "  -f , --force       Force stop all airavata servers."
-	        echo "  --<key>[=<value>]  Server setting(s) to override or introduce (overrides values in airavata-server.properties)"
-            echo "  -h                 Display this help and exit"
-            shift
-            exit 0
-        ;;
-	*)
-            shift
-    esac
-done
-
-if ${FORCE} ; then
-	for f in `find . -name "server_start_*"`; do
-	    # split file name using "_" underscore
-		f_split=(${f//_/ });
-		echo "Found process file : $f"
-		echo -n "    Sending kill signals to process ${f_split[2]}..."
-		out=`kill -9 ${f_split[2]} 2>&1`
-		if [ -z "$out" ]; then
-		    echo "done"
-		else
-		    echo "failed (REASON: $out)"
-		fi
-		echo -n "    Removing process file..."
-		out=`rm ${f} 2>&1`
-		if [ -z "$out" ]; then
-		    echo "done"
-		else
-		    echo "failed (REASON: $out)"
-		fi
-	done
-else
-    java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.server.ServerMain stop ${AIRAVATA_COMMAND} $*
-fi
diff --git a/modules/distribution/src/main/resources/api-server/bin/controller-daemon.sh b/modules/distribution/src/main/resources/api-server/bin/controller-daemon.sh
deleted file mode 100644
index 2a93fa9c8d..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/controller-daemon.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-controller.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Helix Controller"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.controller.HelixController ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stoping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.controller.HelixController ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: controller-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/controller.sh b/modules/distribution/src/main/resources/api-server/bin/controller.sh
deleted file mode 100644
index 7ce09a51b3..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/controller.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-controller.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: controller.sh"
-
-            echo "command options:"
-            echo "  -xdebug             Start Email Monitor under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.helix.impl.controller.HelixController ${AIRAVATA_COMMAND} $*
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/derby.sh b/modules/distribution/src/main/resources/api-server/bin/derby.sh
deleted file mode 100644
index 0d00ec4612..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/derby.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-
-#   http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-export DERBY_HOME=$AIRAVATA_HOME/standalone-server
-cd $AIRAVATA_HOME/bin
-startNetworkServer $*
\ No newline at end of file
diff --git a/modules/distribution/src/main/resources/api-server/bin/email-monitor-daemon.sh b/modules/distribution/src/main/resources/api-server/bin/email-monitor-daemon.sh
deleted file mode 100644
index 0e14878071..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/email-monitor-daemon.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-email-monitor.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Email Monitor"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.monitor.email.EmailBasedMonitor ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stoping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.monitor.email.EmailBasedMonitor ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: email-monitor-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/email-monitor.sh b/modules/distribution/src/main/resources/api-server/bin/email-monitor.sh
deleted file mode 100644
index 38be7ded57..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/email-monitor.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-email-monitor.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: email-monitor.sh"
-
-            echo "command options:"
-            echo "  -xdebug             Start Email Monitor under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.monitor.email.EmailBasedMonitor ${AIRAVATA_COMMAND} $*
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/parser-wm-daemon.sh b/modules/distribution/src/main/resources/api-server/bin/parser-wm-daemon.sh
deleted file mode 100644
index 2a6d5a5374..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/parser-wm-daemon.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-parser-wm.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Parser Workflow Manager"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.workflow.ParserWorkflowManager ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stoping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.workflow.ParserWorkflowManager ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: parser-wm-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/parser-wm.sh b/modules/distribution/src/main/resources/api-server/bin/parser-wm.sh
deleted file mode 100644
index 9044e35be3..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/parser-wm.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-parser-wm.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: parser-wm.sh"
-
-            echo "command options:"
-            echo "  -xdebug             Start Parser Workflow Manager under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.helix.impl.workflow.ParserWorkflowManager ${AIRAVATA_COMMAND} $*
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/participant-daemon.sh b/modules/distribution/src/main/resources/api-server/bin/participant-daemon.sh
deleted file mode 100644
index 7c294045b2..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/participant-daemon.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-participant.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Helix Participant"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.participant.GlobalParticipant ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stoping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.participant.GlobalParticipant ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: participant-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/participant.sh b/modules/distribution/src/main/resources/api-server/bin/participant.sh
deleted file mode 100644
index dd5e551292..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/participant.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-participant.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: participant.sh"
-
-            echo "command options:"
-            echo "  -xdebug             Start Email Monitor under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.helix.impl.participant.GlobalParticipant ${AIRAVATA_COMMAND} $*
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/post-wm-daemon.sh b/modules/distribution/src/main/resources/api-server/bin/post-wm-daemon.sh
deleted file mode 100644
index ed95822e32..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/post-wm-daemon.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-post-wm.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Post Workflow Manager"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.workflow.PostWorkflowManager ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stoping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.workflow.PostWorkflowManager ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: post-wm-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/post-wm.sh b/modules/distribution/src/main/resources/api-server/bin/post-wm.sh
deleted file mode 100644
index 9680231657..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/post-wm.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-post-wm.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: post-wm.sh"
-
-            echo "command options:"
-            echo "  -xdebug             Start Post Workflow Manager under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.helix.impl.workflow.PostWorkflowManager ${AIRAVATA_COMMAND} $*
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/pre-wm-daemon.sh b/modules/distribution/src/main/resources/api-server/bin/pre-wm-daemon.sh
deleted file mode 100644
index c8aa736a24..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/pre-wm-daemon.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-pre-wm.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Pre Workflow Manager"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.workflow.PreWorkflowManager ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stoping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.helix.impl.workflow.PreWorkflowManager ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: pre-wm-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/pre-wm.sh b/modules/distribution/src/main/resources/api-server/bin/pre-wm.sh
deleted file mode 100644
index 386bd01cda..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/pre-wm.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-pre-wm.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: pre-wm.sh"
-
-            echo "command options:"
-            echo "  -xdebug             Start Pre Workflow Manager under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.helix.impl.workflow.PreWorkflowManager ${AIRAVATA_COMMAND} $*
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/realtime-monitor-daemon.sh b/modules/distribution/src/main/resources/api-server/bin/realtime-monitor-daemon.sh
deleted file mode 100644
index 1ce5e5d9d6..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/realtime-monitor-daemon.sh
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-realtime-monitor.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Realtime Monitor"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.monitor.realtime.RealtimeMonitor ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stoping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.monitor.realtime.RealtimeMonitor ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: realtime-monitor-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/realtime-monitor.sh b/modules/distribution/src/main/resources/api-server/bin/realtime-monitor.sh
deleted file mode 100644
index c46b53b897..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/realtime-monitor.sh
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
-
-JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-realtime-monitor.log"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: realtime-monitor.sh"
-
-            echo "command options:"
-            echo "  -xdebug             Start Realtime Monitor under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
-done
-
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.monitor.realtime.RealtimeMonitor ${AIRAVATA_COMMAND} $*
-
diff --git a/modules/distribution/src/main/resources/api-server/bin/sharing-registry.sh b/modules/distribution/src/main/resources/api-server/bin/sharing-registry.sh
deleted file mode 100644
index f8d1d72506..0000000000
--- a/modules/distribution/src/main/resources/api-server/bin/sharing-registry.sh
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-cd $SHARING_REGISTRY_HOME/bin
-
-IS_DAEMON_MODE=false
-SHARING_REGISTRY_COMMAND=""
-STOP=false
-FORCE=false
-JAVA_OPTS=""
-
-for var in "$@"
-do
-    case $var in
-    -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000"
-            shift
-        ;;
-	start)
-	    IS_DAEMON_MODE=true
-            shift
-        ;;
-	stop)
-	    STOP=true
-	    SHARING_REGISTRY_COMMAND="$
-	    SHARING_REGISTRY_COMMAND $var"
-            shift
-        ;;
-        -h)
-            echo "Usage: sharing-registry.sh [command-options]"
-            echo "command options:"
-	    echo "  start              Start server in daemon mode"
-	    echo "  stop               Stop server."
-	    echo "  -xdebug			   Start Sharing Registry Server under JPDA debugger"
-	    echo "  -h                 Display this help and exit"
-	        shift
-            exit 0
-        ;;
-	*)
-	    SHARING_REGISTRY_COMMAND="$SHARING_REGISTRY_COMMAND $var"
-            shift
-    esac
-done
-
-if $STOP;
-then
-	for f in `find . -name "server_start_*"`; do
-		IFS='_' read -a f_split <<< "$f"
-		echo "Found process file : $f"
-		echo -n "    Sending kill signals to process ${f_split[2]}..."
-		out=`kill -9 ${f_split[2]} 2>&1`
-		if [ -z "$out" ]; then
-		    echo "done"
-		else
-		    echo "failed (REASON: $out)"
-		fi
-		echo -n "    Removing process file..."
-		out=`rm $f 2>&1`
-		if [ -z "$out" ]; then
-		    echo "done"
-		else
-		    echo "failed (REASON: $out)"
-		fi
-	done
-else
-	if $IS_DAEMON_MODE ; then
-		echo "Starting Sharing Registry Server in daemon mode..."
-		$JAVA_HOME/bin/java ${JAVA_OPTS} -classpath "$SHARING_REGISTRY_CLASSPATH"  org.apache.airavata.sharing.registry.server.ServerMain $* > $LOG_FILE 2>&1 &
-	else
-		$JAVA_HOME/bin/java ${JAVA_OPTS} -classpath "$SHARING_REGISTRY_CLASSPATH"  org.apache.airavata.sharing.registry.server.ServerMain $*
-	fi
-fi
\ No newline at end of file
diff --git a/modules/distribution/src/main/resources/api-server/bin/airavata-server.bat b/modules/distribution/src/main/resources/distribution/bin/airavata-server.bat
similarity index 100%
rename from modules/distribution/src/main/resources/api-server/bin/airavata-server.bat
rename to modules/distribution/src/main/resources/distribution/bin/airavata-server.bat
diff --git a/modules/distribution/src/main/resources/distribution/bin/airavata-server.sh b/modules/distribution/src/main/resources/distribution/bin/airavata-server.sh
new file mode 100755
index 0000000000..05d15fdfdd
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/airavata-server.sh
@@ -0,0 +1,227 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="airavata-server"
+MAIN_CLASS="org.apache.airavata.server.ServerMain"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+IS_DAEMON_MODE=false
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+FORCE=false
+ACTION=""
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    IS_DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -security)
+    JAVA_OPTS="${JAVA_OPTS} -Djava.security.manager -Djava.security.policy=${AIRAVATA_HOME}/conf/axis2.policy -Daxis2.home=${AIRAVATA_HOME}"
+    shift
+    ;;
+  -enableLegacyTLS)
+    # Enable TLS v1 and v1.1.  disableSystemPropertiesFile is needed
+    # because the system properties file takes precedence. See 'man update-crypto-policies' for more info.
+    JAVA_OPTS="${JAVA_OPTS} -Djava.security.policy=${AIRAVATA_HOME}/bin/enableLegacyTLS.security -Djava.security.disableSystemPropertiesFile=true"
+    shift
+    ;;
+  -nologo)
+    LOGO=false
+    shift
+    ;;
+  -log)
+    shift
+    if [ $# -eq 0 ]; then
+      echo "Error: -log requires a filename"
+      exit 1
+    fi
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  -f | --force)
+    FORCE=true
+    shift
+    ;;
+  start)
+    ACTION="start"
+    shift
+    ;;
+  stop)
+    ACTION="stop"
+    shift
+    ;;
+  -h)
+    echo "Usage: airavata-server [command-options] {start|stop}"
+    echo ""
+    echo "Commands:"
+    echo "  start               Start Airavata server(s)"
+    echo "  stop                Stop Airavata server(s)"
+    echo ""
+    echo "Server names (for start command):"
+    echo "  apiserver           Start apiserver"
+    echo "  gfac                Start gfac server"
+    echo "  orchestrator        Start orchestrator server"
+    echo "  credentialstore     Start credentialstore server"
+    echo "  regserver           Start registry server"
+    echo "  all                 Start all servers in one JVM"
+    echo "  api-orch            Start API and orchestrator servers"
+    echo "  execution           Start execution-related servers"
+    echo ""
+    echo "Command options:"
+    echo "  -d                  Start server in daemon mode"
+    echo "  -xdebug             Start Airavata Server under JPDA debugger"
+    echo "  -nologo             Do not show airavata logo"
+    echo "  -security           Enable Java 2 security"
+    echo "  -enableLegacyTLS    Enable TLS v1 and v1.1"
+    echo "  -f, --force         Force stop all servers (for stop command)"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  --<key>[=<value>]   Server setting(s) to override or introduce (overrides values in airavata-server.properties)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Examples:"
+    echo "  airavata-server start apiserver"
+    echo "  airavata-server -d start api-orch"
+    echo "  airavata-server start -d -log custom.log all"
+    echo "  airavata-server -d stop"
+    echo "  airavata-server stop -f"
+    exit 0
+    ;;
+  *)
+    # Handle server names and other arguments based on action
+    if [ "$ACTION" = "start" ]; then
+      case $1 in
+      apiserver | gfac | orchestrator | credentialstore | regserver)
+        if [ -z ${SERVERS} ]; then
+          SERVERS="${1}"
+        else
+          SERVERS="${SERVERS},${1}"
+        fi
+        ;;
+      all | api-orch | execution)
+        IS_SUBSET=true
+        SUBSET="${1}"
+        ;;
+      *)
+        EXTRA_ARGS="${EXTRA_ARGS} $1"
+        ;;
+      esac
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+    fi
+    shift
+    ;;
+  esac
+done
+
+# Check if action was specified
+if [ -z "$ACTION" ]; then
+  echo "Error: No action specified. Use 'start' or 'stop'"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Validate force flag usage
+if [ "$FORCE" = true ] && [ "$ACTION" != "stop" ]; then
+  echo "Error: -f/--force flag is only valid with 'stop' command"
+  exit 1
+fi
+
+# Handle start action
+if [ "$ACTION" = "start" ]; then
+  # Construct Airavata command arguments in proper order.
+  if ${IS_SUBSET}; then
+    AIRAVATA_COMMAND="--servers=${SUBSET} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
+  else
+    if [ -z ${SERVERS} ]; then
+      echo "You should provide at least one server component to start the airavata server. Please use -h option to get more details."
+      exit 1
+    else
+      AIRAVATA_COMMAND="--servers=${SERVERS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}"
+    fi
+  fi
+
+  # Print logo file
+  if ${LOGO}; then
+    if [ -e ${LOGO_FILE} ]; then
+      cat ${LOGO_FILE}
+    fi
+  fi
+
+  if ${IS_DAEMON_MODE}; then
+    echo "Starting ${SERVICE_NAME} in daemon mode..."
+    echo "Redirecting output to $LOG_FILE"
+    nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} >$LOG_FILE 2>&1 &
+    echo $! >$PID_PATH_NAME
+    echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+  else
+    java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND}
+  fi
+fi
+
+# Handle stop action
+if [ "$ACTION" = "stop" ]; then
+  if ${FORCE}; then
+    for f in $(find . -name "server_start_*"); do
+      # split file name using "_" underscore
+      f_split=(${f//_/ })
+      echo "Found process file : $f"
+      echo -n "    Sending kill signals to process ${f_split[2]}..."
+      out=$(kill -9 ${f_split[2]} 2>&1)
+      if [ -z "$out" ]; then
+        echo "done"
+      else
+        echo "failed (REASON: $out)"
+      fi
+      echo -n "    Removing process file..."
+      out=$(rm ${f} 2>&1)
+      if [ -z "$out" ]; then
+        echo "done"
+      else
+        echo "failed (REASON: $out)"
+      fi
+    done
+  else
+    java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} stop ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
+  fi
+fi
diff --git a/modules/distribution/src/main/resources/distribution/bin/controller.sh b/modules/distribution/src/main/resources/distribution/bin/controller.sh
new file mode 100644
index 0000000000..a114d38525
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/controller.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="controller"
+MAIN_CLASS="org.apache.airavata.helix.impl.controller.HelixController"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      echo "Starting $SERVICE_NAME ..."
+      if [ ! -f $PID_PATH_NAME ]; then
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+      else
+        echo "$SERVICE_NAME is already running with PID $(cat $PID_PATH_NAME)"
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+        echo "$SERVICE_NAME starting ..."
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started ..."
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  -h)
+    echo "Usage: controller.sh"
+
+    echo "command options:"
+    echo "  -d                  Run in daemon mode"
+    echo "  -xdebug             Start Controller under JPDA debugger"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Daemon mode commands (use with -d):"
+    echo "  start               Start server in daemon mode"
+    echo "  stop                Stop server running in daemon mode"
+    echo "  restart             Restart server in daemon mode"
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} $1"
+    shift
+    ;;
+  esac
+done
+
+# If in daemon mode but no daemon command specified, show error
+if [ "$DAEMON_MODE" = true ]; then
+  echo "Error: Daemon mode (-d) requires one of: start, stop, restart"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Run in foreground mode
+java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
diff --git a/modules/distribution/src/main/resources/distribution/bin/email-monitor.sh b/modules/distribution/src/main/resources/distribution/bin/email-monitor.sh
new file mode 100644
index 0000000000..10243a9661
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/email-monitor.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="email-monitor"
+MAIN_CLASS="org.apache.airavata.monitor.email.EmailBasedMonitor"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      echo "Starting $SERVICE_NAME ..."
+      if [ ! -f $PID_PATH_NAME ]; then
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+      else
+        echo "$SERVICE_NAME is already running with PID $(cat $PID_PATH_NAME)"
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+        echo "$SERVICE_NAME starting ..."
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started ..."
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  -h)
+    echo "Usage: email-monitor.sh"
+
+    echo "command options:"
+    echo "  -d                  Run in daemon mode"
+    echo "  -xdebug             Start Email Monitor under JPDA debugger"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Daemon mode commands (use with -d):"
+    echo "  start               Start server in daemon mode"
+    echo "  stop                Stop server running in daemon mode"
+    echo "  restart             Restart server in daemon mode"
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} $1"
+    shift
+    ;;
+  esac
+done
+
+# If in daemon mode but no daemon command specified, show error
+if [ "$DAEMON_MODE" = true ]; then
+  echo "Error: Daemon mode (-d) requires one of: start, stop, restart"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Run in foreground mode
+java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
diff --git a/modules/distribution/src/main/resources/distribution/bin/parser-wm.sh b/modules/distribution/src/main/resources/distribution/bin/parser-wm.sh
new file mode 100644
index 0000000000..c0d1e233ae
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/parser-wm.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="parser-wm"
+MAIN_CLASS="org.apache.airavata.helix.impl.workflow.ParserWorkflowManager"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      echo "Starting $SERVICE_NAME ..."
+      if [ ! -f $PID_PATH_NAME ]; then
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+      else
+        echo "$SERVICE_NAME is already running with PID $(cat $PID_PATH_NAME)"
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+        echo "$SERVICE_NAME starting ..."
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started ..."
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  -h)
+    echo "Usage: parser-wm.sh"
+
+    echo "command options:"
+    echo "  -d                  Run in daemon mode"
+    echo "  -xdebug             Start Parser Workflow Manager under JPDA debugger"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Daemon mode commands (use with -d):"
+    echo "  start               Start server in daemon mode"
+    echo "  stop                Stop server running in daemon mode"
+    echo "  restart             Restart server in daemon mode"
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} $1"
+    shift
+    ;;
+  esac
+done
+
+# If in daemon mode but no daemon command specified, show error
+if [ "$DAEMON_MODE" = true ]; then
+  echo "Error: Daemon mode (-d) requires one of: start, stop, restart"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Run in foreground mode
+java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
diff --git a/modules/distribution/src/main/resources/distribution/bin/participant.sh b/modules/distribution/src/main/resources/distribution/bin/participant.sh
new file mode 100644
index 0000000000..80c3cea70f
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/participant.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="participant"
+MAIN_CLASS="org.apache.airavata.helix.impl.participant.GlobalParticipant"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      echo "Starting $SERVICE_NAME ..."
+      if [ ! -f $PID_PATH_NAME ]; then
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+      else
+        echo "$SERVICE_NAME is already running with PID $(cat $PID_PATH_NAME)"
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+        echo "$SERVICE_NAME starting ..."
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started ..."
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  -h)
+    echo "Usage: participant.sh"
+
+    echo "command options:"
+    echo "  -d                  Run in daemon mode"
+    echo "  -xdebug             Start Helix Participant under JPDA debugger"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Daemon mode commands (use with -d):"
+    echo "  start               Start server in daemon mode"
+    echo "  stop                Stop server running in daemon mode"
+    echo "  restart             Restart server in daemon mode"
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} $1"
+    shift
+    ;;
+  esac
+done
+
+# If in daemon mode but no daemon command specified, show error
+if [ "$DAEMON_MODE" = true ]; then
+  echo "Error: Daemon mode (-d) requires one of: start, stop, restart"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Run in foreground mode
+java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
diff --git a/modules/distribution/src/main/resources/distribution/bin/post-wm.sh b/modules/distribution/src/main/resources/distribution/bin/post-wm.sh
new file mode 100644
index 0000000000..f290dd925b
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/post-wm.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="post-wm"
+MAIN_CLASS="org.apache.airavata.helix.impl.workflow.PostWorkflowManager"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      echo "Starting $SERVICE_NAME ..."
+      if [ ! -f $PID_PATH_NAME ]; then
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+      else
+        echo "$SERVICE_NAME is already running with PID $(cat $PID_PATH_NAME)"
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+        echo "$SERVICE_NAME starting ..."
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started ..."
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  -h)
+    echo "Usage: post-wm.sh"
+
+    echo "command options:"
+    echo "  -d                  Run in daemon mode"
+    echo "  -xdebug             Start Post Workflow Manager under JPDA debugger"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Daemon mode commands (use with -d):"
+    echo "  start               Start server in daemon mode"
+    echo "  stop                Stop server running in daemon mode"
+    echo "  restart             Restart server in daemon mode"
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} $1"
+    shift
+    ;;
+  esac
+done
+
+# If in daemon mode but no daemon command specified, show error
+if [ "$DAEMON_MODE" = true ]; then
+  echo "Error: Daemon mode (-d) requires one of: start, stop, restart"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Run in foreground mode
+java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
diff --git a/modules/distribution/src/main/resources/distribution/bin/pre-wm.sh b/modules/distribution/src/main/resources/distribution/bin/pre-wm.sh
new file mode 100644
index 0000000000..7ba5896444
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/pre-wm.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="pre-wm"
+MAIN_CLASS="org.apache.airavata.helix.impl.workflow.PreWorkflowManager"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      echo "Starting $SERVICE_NAME ..."
+      if [ ! -f $PID_PATH_NAME ]; then
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+      else
+        echo "$SERVICE_NAME is already running with PID $(cat $PID_PATH_NAME)"
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+        echo "$SERVICE_NAME starting ..."
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started ..."
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  -h)
+    echo "Usage: pre-wm.sh"
+
+    echo "command options:"
+    echo "  -d                  Run in daemon mode"
+    echo "  -xdebug             Start Pre Workflow Manager under JPDA debugger"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Daemon mode commands (use with -d):"
+    echo "  start               Start server in daemon mode"
+    echo "  stop                Stop server running in daemon mode"
+    echo "  restart             Restart server in daemon mode"
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} $1"
+    shift
+    ;;
+  esac
+done
+
+# If in daemon mode but no daemon command specified, show error
+if [ "$DAEMON_MODE" = true ]; then
+  echo "Error: Daemon mode (-d) requires one of: start, stop, restart"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Run in foreground mode
+java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
diff --git a/modules/distribution/src/main/resources/distribution/bin/realtime-monitor.sh b/modules/distribution/src/main/resources/distribution/bin/realtime-monitor.sh
new file mode 100644
index 0000000000..8389c321bd
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/realtime-monitor.sh
@@ -0,0 +1,166 @@
+#!/usr/bin/env bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="realtime-monitor"
+MAIN_CLASS="org.apache.airavata.monitor.realtime.RealtimeMonitor"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
+
+JAVA_OPTS="-Dairavata.config.dir=${AIRAVATA_HOME}/conf -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+AIRAVATA_COMMAND=""
+EXTRA_ARGS=""
+SERVERS=""
+LOGO=true
+IS_SUBSET=false
+SUBSET=""
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
+LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
+
+# parse command arguments
+while [ $# -gt 0 ]; do
+  case $1 in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      echo "Starting $SERVICE_NAME ..."
+      if [ ! -f $PID_PATH_NAME ]; then
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started with PID $(cat $PID_PATH_NAME)"
+      else
+        echo "$SERVICE_NAME is already running with PID $(cat $PID_PATH_NAME)"
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      if [ -f $PID_PATH_NAME ]; then
+        PID=$(cat $PID_PATH_NAME)
+        echo "$SERVICE_NAME stopping ..."
+        kill $PID
+        RETRY=0
+        while kill -0 $PID 2>/dev/null; do
+          echo "Waiting for the process $PID to be stopped"
+          RETRY=$(expr ${RETRY} + 1)
+          if [ "${RETRY}" -gt "20" ]; then
+            echo "Forcefully killing the process as it is not responding ..."
+            kill -9 $PID
+          fi
+          sleep 1
+        done
+        echo "$SERVICE_NAME stopped ..."
+        rm $PID_PATH_NAME
+        echo "$SERVICE_NAME starting ..."
+        nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+        echo $! >$PID_PATH_NAME
+        echo "$SERVICE_NAME started ..."
+      else
+        echo "$SERVICE_NAME is not running ..."
+      fi
+      exit 0
+    else
+      EXTRA_ARGS="${EXTRA_ARGS} $1"
+      shift
+    fi
+    ;;
+  -h)
+    echo "Usage: realtime-monitor.sh"
+
+    echo "command options:"
+    echo "  -d                  Run in daemon mode"
+    echo "  -xdebug             Start Realtime Monitor under JPDA debugger"
+    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+    echo "  -h                  Display this help and exit"
+    echo ""
+    echo "Daemon mode commands (use with -d):"
+    echo "  start               Start server in daemon mode"
+    echo "  stop                Stop server running in daemon mode"
+    echo "  restart             Restart server in daemon mode"
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} $1"
+    shift
+    ;;
+  esac
+done
+
+# If in daemon mode but no daemon command specified, show error
+if [ "$DAEMON_MODE" = true ]; then
+  echo "Error: Daemon mode (-d) requires one of: start, stop, restart"
+  echo "Use -h for help"
+  exit 1
+fi
+
+# Run in foreground mode
+java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} ${EXTRA_ARGS}
diff --git a/modules/distribution/src/main/resources/api-server/bin/setenv.bat b/modules/distribution/src/main/resources/distribution/bin/setenv.bat
similarity index 100%
rename from modules/distribution/src/main/resources/api-server/bin/setenv.bat
rename to modules/distribution/src/main/resources/distribution/bin/setenv.bat
diff --git a/modules/distribution/src/main/resources/api-server/bin/setenv.sh b/modules/distribution/src/main/resources/distribution/bin/setenv.sh
similarity index 79%
rename from modules/distribution/src/main/resources/api-server/bin/setenv.sh
rename to modules/distribution/src/main/resources/distribution/bin/setenv.sh
index 9e894e1db7..98c9836753 100755
--- a/modules/distribution/src/main/resources/api-server/bin/setenv.sh
+++ b/modules/distribution/src/main/resources/distribution/bin/setenv.sh
@@ -7,9 +7,9 @@
 # to you under the Apache License, Version 2.0 (the
 # "License"); you may not use this file except in compliance
 # with the License. You may obtain a copy of the License at
-# 
+#
 # http://www.apache.org/licenses/LICENSE-2.0
-# 
+#
 # Unless required by applicable law or agreed to in writing,
 # software distributed under the License is distributed on an
 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -21,24 +21,26 @@
 PRG="$0"
 
 while [ -h "$PRG" ]; do
-  ls=`ls -ld "$PRG"`
-  link=`expr "$ls" : '.*-> \(.*\)$'`
-  if expr "$link" : '.*/.*' > /dev/null; then
+  ls=$(ls -ld "$PRG")
+  link=$(expr "$ls" : '.*-> \(.*\)$')
+  if expr "$link" : '.*/.*' >/dev/null; then
     PRG="$link"
   else
-    PRG=`dirname "$PRG"`/"$link"
+    PRG=$(dirname "$PRG")/"$link"
   fi
 done
 
-PRGDIR=`dirname "$PRG"`
+PRGDIR=$(dirname "$PRG")
 
 # Only set AIRAVATA_HOME if not already set
-[ -z "$AIRAVATA_HOME" ] && AIRAVATA_HOME=`cd "$PRGDIR/.." ; pwd`
+[ -z "$AIRAVATA_HOME" ] && AIRAVATA_HOME=$(
+  cd "$PRGDIR/.."
+  pwd
+)
 
 AIRAVATA_CLASSPATH=""
 
-for f in "$AIRAVATA_HOME"/lib/*.jar
-do
+for f in "$AIRAVATA_HOME"/lib/*.jar; do
   AIRAVATA_CLASSPATH="$AIRAVATA_CLASSPATH":$f
 done
 
diff --git a/modules/distribution/src/main/resources/distribution/bin/sharing-registry.sh b/modules/distribution/src/main/resources/distribution/bin/sharing-registry.sh
new file mode 100644
index 0000000000..4d16828dc2
--- /dev/null
+++ b/modules/distribution/src/main/resources/distribution/bin/sharing-registry.sh
@@ -0,0 +1,92 @@
+#!/bin/bash
+
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="sharing-registry"
+MAIN_CLASS="org.apache.airavata.sharing.registry.server.ServerMain"
+
+cd $SHARING_REGISTRY_HOME/bin
+
+IS_DAEMON_MODE=false
+SHARING_REGISTRY_COMMAND=""
+STOP=false
+FORCE=false
+JAVA_OPTS=""
+
+for var in "$@"; do
+  case $var in
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000"
+    shift
+    ;;
+  start)
+    IS_DAEMON_MODE=true
+    shift
+    ;;
+  stop)
+    STOP=true
+    SHARING_REGISTRY_COMMAND="$
+	    SHARING_REGISTRY_COMMAND $var"
+    shift
+    ;;
+  -h)
+    echo "Usage: sharing-registry.sh [command-options]"
+    echo "command options:"
+    echo "  start              Start server in daemon mode"
+    echo "  stop               Stop server."
+    echo "  -xdebug			   Start Sharing Registry Server under JPDA debugger"
+    echo "  -h                 Display this help and exit"
+    shift
+    exit 0
+    ;;
+  *)
+    SHARING_REGISTRY_COMMAND="$SHARING_REGISTRY_COMMAND $var"
+    shift
+    ;;
+  esac
+done
+
+if $STOP; then
+  for f in $(find . -name "server_start_*"); do
+    IFS='_' read -a f_split <<<"$f"
+    echo "Found process file : $f"
+    echo -n "    Sending kill signals to process ${f_split[2]}..."
+    out=$(kill -9 ${f_split[2]} 2>&1)
+    if [ -z "$out" ]; then
+      echo "done"
+    else
+      echo "failed (REASON: $out)"
+    fi
+    echo -n "    Removing process file..."
+    out=$(rm $f 2>&1)
+    if [ -z "$out" ]; then
+      echo "done"
+    else
+      echo "failed (REASON: $out)"
+    fi
+  done
+else
+  if $IS_DAEMON_MODE; then
+    echo "Starting ${SERVICE_NAME} in daemon mode..."
+    $JAVA_HOME/bin/java ${JAVA_OPTS} -classpath "$SHARING_REGISTRY_CLASSPATH" ${MAIN_CLASS} $* >$LOG_FILE 2>&1 &
+  else
+    $JAVA_HOME/bin/java ${JAVA_OPTS} -classpath "$SHARING_REGISTRY_CLASSPATH" ${MAIN_CLASS} $*
+  fi
+fi
diff --git a/modules/distribution/src/main/resources/api-server/bin/start-network-server.sh b/modules/distribution/src/main/resources/distribution/bin/start-network-server.sh
similarity index 53%
rename from modules/distribution/src/main/resources/api-server/bin/start-network-server.sh
rename to modules/distribution/src/main/resources/distribution/bin/start-network-server.sh
index 808566c3d7..b1204ab6f4 100644
--- a/modules/distribution/src/main/resources/api-server/bin/start-network-server.sh
+++ b/modules/distribution/src/main/resources/distribution/bin/start-network-server.sh
@@ -17,72 +17,81 @@
 # specific language governing permissions and limitations
 # under the License.
 
-if [ -n "$derby_common_debug" ] ; then
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="network-server"
+MAIN_CLASS="org.apache.derby.drda.NetworkServerControl"
+
+# Capture user's working dir before changing directory
+CWD="$PWD"
+cd ${AIRAVATA_HOME}/bin
+
+if [ -n "$derby_common_debug" ]; then
   set -x
 fi
 
 # OS specific support.  $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-case "`uname`" in
-  CYGWIN*) cygwin=true ;;
-  Darwin*) darwin=true
-           if [ -z "$JAVA_HOME" ] ; then
-             JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
-           fi
-           ;;
+cygwin=false
+darwin=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+Darwin*)
+  darwin=true
+  if [ -z "$JAVA_HOME" ]; then
+    JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home
+  fi
+  ;;
 esac
 
-if [ -z "$DERBY_HOME" -o ! -d "$DERBY_HOME" ] ; then
+if [ -z "$DERBY_HOME" -o ! -d "$DERBY_HOME" ]; then
   ## resolve links - $0 may be a link to derby's home
   PRG="$0"
-  progname=`basename "$0"`
+  progname=$(basename "$0")
 
   # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-    PRG="$link"
+  while [ -h "$PRG" ]; do
+    ls=$(ls -ld "$PRG")
+    link=$(expr "$ls" : '.*-> \(.*\)$')
+    if expr "$link" : '/.*' >/dev/null; then
+      PRG="$link"
     else
-    PRG=`dirname "$PRG"`"/$link"
+      PRG=$(dirname "$PRG")"/$link"
     fi
   done
 
-  DERBY_HOME=`dirname "$PRG"`/..
+  DERBY_HOME=$(dirname "$PRG")/..
 
   # make it fully qualified
-  DERBY_HOME=`cd "$DERBY_HOME" && pwd`
+  DERBY_HOME=$(cd "$DERBY_HOME" && pwd)
 fi
 
 # For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
+if $cygwin; then
   [ -n "$DERBY_HOME" ] &&
-    DERBY_HOME=`cygpath --unix "$DERBY_HOME"`
+    DERBY_HOME=$(cygpath --unix "$DERBY_HOME")
   [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+    JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
 fi
 
 # set DERBY_LIB location
 DERBY_LIB="${DERBY_HOME}/lib"
 
-if [ -z "$JAVACMD" ] ; then
-  if [ -n "$JAVA_HOME"  ] ; then
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+if [ -z "$JAVACMD" ]; then
+  if [ -n "$JAVA_HOME" ]; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ]; then
       # IBM's JDK on AIX uses strange locations for the executables
       JAVACMD="$JAVA_HOME/jre/sh/java"
     else
       JAVACMD="$JAVA_HOME/bin/java"
     fi
   else
-    JAVACMD=`which java 2> /dev/null `
-    if [ -z "$JAVACMD" ] ; then
-        JAVACMD=java
+    JAVACMD=$(which java 2>/dev/null)
+    if [ -z "$JAVACMD" ]; then
+      JAVACMD=java
     fi
   fi
 fi
 
-if [ ! -x "$JAVACMD" ] ; then
+if [ ! -x "$JAVACMD" ]; then
   echo "Error: JAVA_HOME is not defined correctly."
   echo "  We cannot execute $JAVACMD"
   exit 1
@@ -97,11 +106,11 @@ LOCALCLASSPATH=$DERBY_LIB/derby.jar:$DERBY_LIB/derbynet.jar:$DERBY_LIB/derbytool
 #
 # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour
 # with derby-found jars first and user CLASSPATH after
-if [ -n "$CLASSPATH" ] ; then
-  # merge local and specified classpath 
-  if [ -z "$LOCALCLASSPATH" ] ; then 
+if [ -n "$CLASSPATH" ]; then
+  # merge local and specified classpath
+  if [ -z "$LOCALCLASSPATH" ]; then
     LOCALCLASSPATH="$CLASSPATH"
-  elif [ -n "$CLASSPATH_OVERRIDE" ] ; then
+  elif [ -n "$CLASSPATH_OVERRIDE" ]; then
     LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH"
   else
     LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH"
@@ -117,73 +126,55 @@ fi
 # in the name in the path. Let's assume that paths containing ; are more
 # rare than windows style paths on cygwin.
 if $cygwin; then
-  if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then
+  if [ "$OS" = "Windows_NT" ] && cygpath -m . >/dev/null 2>/dev/null; then
     format=mixed
   else
     format=windows
   fi
-  DERBY_HOME=`cygpath --$format "$DERBY_HOME"`
-  DERBY_LIB=`cygpath --$format "$DERBY_LIB"`
+  DERBY_HOME=$(cygpath --$format "$DERBY_HOME")
+  DERBY_LIB=$(cygpath --$format "$DERBY_LIB")
   if [ -n "$JAVA_HOME" ]; then
-    JAVA_HOME=`cygpath --$format "$JAVA_HOME"`
+    JAVA_HOME=$(cygpath --$format "$JAVA_HOME")
   fi
-  LCP_TEMP=`cygpath --path --unix "$LOCALCLASSPATH"`
-  LOCALCLASSPATH=`cygpath --path --$format "$LCP_TEMP"`
-  if [ -n "$CLASSPATH" ] ; then
-    CP_TEMP=`cygpath --path --unix "$CLASSPATH"`
-    CLASSPATH=`cygpath --path --$format "$CP_TEMP"`
+  LCP_TEMP=$(cygpath --path --unix "$LOCALCLASSPATH")
+  LOCALCLASSPATH=$(cygpath --path --$format "$LCP_TEMP")
+  if [ -n "$CLASSPATH" ]; then
+    CP_TEMP=$(cygpath --path --unix "$CLASSPATH")
+    CLASSPATH=$(cygpath --path --$format "$CP_TEMP")
   fi
-  CYGHOME=`cygpath --$format "$HOME"`
+  CYGHOME=$(cygpath --$format "$HOME")
 fi
 
 # add a second backslash to variables terminated by a backslash under cygwin
 if $cygwin; then
   case "$DERBY_HOME" in
-    *\\ )
+  *\\)
     DERBY_HOME="$DERBY_HOME\\"
     ;;
   esac
   case "$CYGHOME" in
-    *\\ )
+  *\\)
     CYGHOME="$CYGHOME\\"
     ;;
   esac
   case "$LOCALCLASSPATH" in
-    *\\ )
+  *\\)
     LOCALCLASSPATH="$LOCALCLASSPATH\\"
     ;;
   esac
   case "$CLASSPATH" in
-    *\\ )
+  *\\)
     CLASSPATH="$CLASSPATH\\"
     ;;
   esac
 fi
 
 # Readjust classpath for MKS
-# expr match 
-if [ \( "`expr $SHELL : '.*sh.exe$'`" -gt 0 \) -a \( "$cygwin" = "false" \) ]; then
-  LOCALCLASSPATH=`echo $LOCALCLASSPATH | sed -E 's/([\d\w]*):([\d\w]*)/\1;\2/g
-'`
+# expr match
+if [ \( "$(expr $SHELL : '.*sh.exe$')" -gt 0 \) -a \( "$cygwin" = "false" \) ]; then
+  LOCALCLASSPATH=$(echo $LOCALCLASSPATH | sed -E 's/([\d\w]*):([\d\w]*)/\1;\2/g
+')
 fi
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-
-#   http://www.apache.org/licenses/LICENSE-2.0
-
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
 
-derby_exec_command="exec \"$JAVACMD\" $DERBY_OPTS -classpath \"$LOCALCLASSPATH\" org.apache.derby.drda.NetworkServerControl start $@"
+derby_exec_command="exec \"$JAVACMD\" $DERBY_OPTS -classpath \"$LOCALCLASSPATH\" ${MAIN_CLASS} start $@"
 eval $derby_exec_command
diff --git a/modules/distribution/src/main/resources/api-server/conf/airavata-server.properties b/modules/distribution/src/main/resources/distribution/conf/airavata-server.properties
similarity index 98%
rename from modules/distribution/src/main/resources/api-server/conf/airavata-server.properties
rename to modules/distribution/src/main/resources/distribution/conf/airavata-server.properties
index 4942243247..4bdb489b1f 100644
--- a/modules/distribution/src/main/resources/api-server/conf/airavata-server.properties
+++ b/modules/distribution/src/main/resources/distribution/conf/airavata-server.properties
@@ -49,7 +49,7 @@ credential.store.jdbc.user=root
 credential.store.jdbc.validationQuery=SELECT 1 from CONFIGURATION
 credential.store.keystore.alias=airavata
 credential.store.keystore.password=airavata
-credential.store.keystore.url=keystores/airavata_sym.jks
+credential.store.keystore.url=keystores/airavata.jks
 credential.store.server.host=localhost
 credential.store.server.port=8960
 credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer
@@ -229,7 +229,7 @@ TLS.client.timeout=10000
 TLS.enabled=true
 
 trust.store.password=airavata
-trust.store=keystores/client_truststore.jks
+trust.store=keystores/airavata.jks
 
 usage.reporting.endpoint=https://xsede-xdcdb-api.xsede.org/gateway/v2/job_attributes
 usage.reporting.key=CHANGE_ME
diff --git a/modules/distribution/src/main/resources/api-server/conf/email-config.yaml b/modules/distribution/src/main/resources/distribution/conf/email-config.yaml
similarity index 100%
rename from modules/distribution/src/main/resources/api-server/conf/email-config.yaml
rename to modules/distribution/src/main/resources/distribution/conf/email-config.yaml
diff --git a/modules/distribution/src/main/resources/api-server/conf/log4j2.xml b/modules/distribution/src/main/resources/distribution/conf/log4j2.xml
similarity index 100%
rename from modules/distribution/src/main/resources/api-server/conf/log4j2.xml
rename to modules/distribution/src/main/resources/distribution/conf/log4j2.xml
diff --git a/modules/file-server/src/main/resources/distribution/bin/file-service-daemon.sh b/modules/file-server/src/main/resources/distribution/bin/file-service-daemon.sh
deleted file mode 100644
index 131d99df54..0000000000
--- a/modules/file-server/src/main/resources/distribution/bin/file-service-daemon.sh
+++ /dev/null
@@ -1,112 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="logo.txt"
-
-JAVA_OPTS=" -Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-daemon.out"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="File Service"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.file.server.FileServerApplication ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.file.server.FileServerApplication ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: file-service-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
diff --git a/modules/file-server/src/main/resources/distribution/bin/file-service.sh b/modules/file-server/src/main/resources/distribution/bin/file-service.sh
index 231f5dfa26..18e744c933 100644
--- a/modules/file-server/src/main/resources/distribution/bin/file-service.sh
+++ b/modules/file-server/src/main/resources/distribution/bin/file-service.sh
@@ -18,10 +18,13 @@
 # under the License.
 
 . `dirname $0`/setenv.sh
+SERVICE_NAME="file-service"
+MAIN_CLASS="org.apache.airavata.file.server.FileServerApplication"
+
 # Capture user's working dir before changing directory
 CWD="$PWD"
 cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="logo.txt"
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
 
 JAVA_OPTS="-Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
 AIRAVATA_COMMAND=""
@@ -29,42 +32,156 @@ EXTRA_ARGS=""
 SERVERS=""
 IS_SUBSET=false
 SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata.out"
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
 LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
 
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: file-service.sh"
+# Function to start the service
+start_service() {
+  if [ "$DAEMON_MODE" = true ]; then
+    echo "Starting $SERVICE_NAME in daemon mode..."
+    if [ ! -f $PID_PATH_NAME ]; then
+      nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+      echo $! >$PID_PATH_NAME
+      echo "$SERVICE_NAME started ..."
+    else
+      echo "$SERVICE_NAME is already running ..."
+    fi
+  else
+    echo "Starting $SERVICE_NAME in interactive mode..."
+    java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $*
+  fi
+}
+
+# Function to stop the service
+stop_service() {
+  if [ -f $PID_PATH_NAME ]; then
+    PID=$(cat $PID_PATH_NAME)
+    echo "$SERVICE_NAME stopping ..."
+    kill $PID
+    RETRY=0
+    while kill -0 $PID 2>/dev/null; do
+      echo "Waiting for the process $PID to be stopped"
+      RETRY=$(expr ${RETRY} + 1)
+      if [ "${RETRY}" -gt "20" ]; then
+        echo "Forcefully killing the process as it is not responding ..."
+        kill -9 $PID
+      fi
+      sleep 1
+    done
+    echo "$SERVICE_NAME stopped ..."
+    rm $PID_PATH_NAME
+  else
+    echo "$SERVICE_NAME is not running ..."
+  fi
+}
 
-            echo "command options:"
-            echo "  -xdebug             Start Connection Service under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
+# Function to restart the service
+restart_service() {
+  if [ -f $PID_PATH_NAME ]; then
+    PID=$(cat $PID_PATH_NAME)
+    echo "$SERVICE_NAME stopping ..."
+    kill $PID
+    RETRY=0
+    while kill -0 $PID 2>/dev/null; do
+      echo "Waiting for the process $PID to be stopped"
+      RETRY=$(expr ${RETRY} + 1)
+      if [ "${RETRY}" -gt "20" ]; then
+        echo "Forcefully killing the process as it is not responding ..."
+        kill -9 $PID
+      fi
+      sleep 1
+    done
+    echo "$SERVICE_NAME stopped ..."
+    rm $PID_PATH_NAME
+  fi
+  start_service $*
+}
+
+# Function to show help
+show_help() {
+  echo "Usage: file-service.sh [options] [command]"
+  echo ""
+  echo "Commands (daemon mode only):"
+  echo "  start               Start server in daemon mode"
+  echo "  stop                Stop server running in daemon mode"
+  echo "  restart             Restart server in daemon mode"
+  echo ""
+  echo "Options:"
+  echo "  -d                  Run in daemon mode"
+  echo "  -xdebug             Start File Service under JPDA debugger"
+  echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+  echo "  -h                  Display this help and exit"
+  echo ""
+  echo "Examples:"
+  echo "  file-service.sh                    # Run in interactive mode"
+  echo "  file-service.sh -d start           # Start in daemon mode"
+  echo "  file-service.sh -d stop            # Stop daemon"
+  echo "  file-service.sh -d restart         # Restart daemon"
+  echo "  file-service.sh -xdebug            # Run with debugger in interactive mode"
+}
+
+# parse command arguments
+for var in "$@"; do
+  case ${var} in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      start_service $*
+      exit 0
+    else
+      echo "Error: 'start' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      stop_service
+      exit 0
+    else
+      echo "Error: 'stop' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      restart_service $*
+      exit 0
+    else
+      echo "Error: 'restart' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  -h)
+    show_help
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} ${var}"
+    shift
+    ;;
+  esac
 done
 
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.file.server.FileServerApplication ${AIRAVATA_COMMAND} $*
+# If no specific command was given, run in interactive mode
+if [ "$DAEMON_MODE" = false ]; then
+  java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $*
+fi
diff --git a/modules/ide-integration/README.md b/modules/ide-integration/README.md
index 1c72fe9e73..d6459454f7 100644
--- a/modules/ide-integration/README.md
+++ b/modules/ide-integration/README.md
@@ -237,18 +237,13 @@ Only needed when Keycloak certificates expire:
 ```bash
 cd modules/ide-integration/src/main/resources/keystores
 
-# Remove old keystores
-rm airavata.jks client_truststore.jks
+# Remove old keystore
+rm airavata.jks
 
-# Generate new keystores
-# airavata.jks (PKCS12, preferred)
+# Generate new keystore (airavata.jks)
 keytool -genkey -keyalg RSA -alias selfsigned -keystore airavata.jks \
         -storetype pkcs12 -storepass airavata -validity 360 -keysize 2048 \
         -dname "CN=airavata.host,OU=airavata.host,O=airavata.host,L=airavata.host,ST=airavata.host,C=airavata.host"
-# client_truststore.jks (JKS, legacy)
-keytool -importkeystore -noprompt \
-        -srckeystore airavata.jks -srcstoretype pkcs12 -srcstorepass airavata \
-        -destkeystore client_truststore.jks -deststoretype jks -deststorepass airavata
 ```
 
 ## 📊 Service Status Overview
diff --git a/modules/ide-integration/pom.xml b/modules/ide-integration/pom.xml
index ace526be96..cabc366304 100644
--- a/modules/ide-integration/pom.xml
+++ b/modules/ide-integration/pom.xml
@@ -54,7 +54,6 @@ under the License.
               <targetPath>keystores</targetPath>
               <includes>
                 <include>*.jks</include>
-                <include>*.p12</include>
               </includes>
             </resource>
         </resources>
diff --git a/modules/ide-integration/src/main/resources/airavata-server.properties b/modules/ide-integration/src/main/resources/airavata-server.properties
index 4942243247..4bdb489b1f 100644
--- a/modules/ide-integration/src/main/resources/airavata-server.properties
+++ b/modules/ide-integration/src/main/resources/airavata-server.properties
@@ -49,7 +49,7 @@ credential.store.jdbc.user=root
 credential.store.jdbc.validationQuery=SELECT 1 from CONFIGURATION
 credential.store.keystore.alias=airavata
 credential.store.keystore.password=airavata
-credential.store.keystore.url=keystores/airavata_sym.jks
+credential.store.keystore.url=keystores/airavata.jks
 credential.store.server.host=localhost
 credential.store.server.port=8960
 credentialstore=org.apache.airavata.credential.store.server.CredentialStoreServer
@@ -229,7 +229,7 @@ TLS.client.timeout=10000
 TLS.enabled=true
 
 trust.store.password=airavata
-trust.store=keystores/client_truststore.jks
+trust.store=keystores/airavata.jks
 
 usage.reporting.endpoint=https://xsede-xdcdb-api.xsede.org/gateway/v2/job_attributes
 usage.reporting.key=CHANGE_ME
diff --git a/modules/research-framework/research-service/src/main/assembly/research-service-bin-assembly.xml b/modules/research-framework/research-service/src/main/assembly/research-service-bin-assembly.xml
index de27dbefe2..a6761dbce1 100644
--- a/modules/research-framework/research-service/src/main/assembly/research-service-bin-assembly.xml
+++ b/modules/research-framework/research-service/src/main/assembly/research-service-bin-assembly.xml
@@ -43,7 +43,7 @@
       <outputDirectory>conf</outputDirectory>
       <includes>
         <include>application.yml</include>
-        <include>truststore.jks</include>
+        <include>airavata.jks</include>
         <include>log4j2.xml</include>
       </includes>
     </fileSet>
diff --git a/modules/research-framework/research-service/src/main/resources/distribution/bin/research-service-daemon.sh b/modules/research-framework/research-service/src/main/resources/distribution/bin/research-service-daemon.sh
deleted file mode 100755
index 104bc87033..0000000000
--- a/modules/research-framework/research-service/src/main/resources/distribution/bin/research-service-daemon.sh
+++ /dev/null
@@ -1,112 +0,0 @@
-#!/usr/bin/env bash
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-. `dirname $0`/setenv.sh
-# Capture user's working dir before changing directory
-CWD="$PWD"
-cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="logo.txt"
-
-JAVA_OPTS="-Dairavata.server.truststore.path=${AIRAVATA_HOME}/conf/truststore.jks -Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
-AIRAVATA_COMMAND=""
-EXTRA_ARGS=""
-SERVERS=""
-LOGO=true
-IS_SUBSET=false
-SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata-daemon.out"
-LOG_FILE=$DEFAULT_LOG_FILE
-
-SERVICE_NAME="Research Service"
-PID_PATH_NAME="${AIRAVATA_HOME}/bin/service-pid"
-
-case $1 in
-    start)
-        echo "Starting $SERVICE_NAME ..."
-        if [ ! -f $PID_PATH_NAME ]; then
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.research.service.ResearchServiceApplication ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is already running ..."
-        fi
-    ;;
-    stop)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ..."
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ..."
-            rm $PID_PATH_NAME
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    restart)
-        if [ -f $PID_PATH_NAME ]; then
-            PID=$(cat $PID_PATH_NAME);
-            echo "$SERVICE_NAME stopping ...";
-            kill $PID;
-            RETRY=0
-            while kill -0 $PID 2> /dev/null; do
-                echo "Waiting for the process $PID to be stopped"
-                RETRY=`expr ${RETRY} + 1`
-                if [ "${RETRY}" -gt "20" ]
-                then
-                    echo "Forcefully killing the process as it is not responding ..."
-                    kill -9 $PID
-                fi
-                sleep 1
-            done
-            echo "$SERVICE_NAME stopped ...";
-            rm $PID_PATH_NAME
-            echo "$SERVICE_NAME starting ..."
-            nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-            org.apache.airavata.research.service.ResearchServiceApplication ${AIRAVATA_COMMAND} $* > $LOG_FILE 2>&1 &
-            echo $! > $PID_PATH_NAME
-            echo "$SERVICE_NAME started ..."
-        else
-            echo "$SERVICE_NAME is not running ..."
-        fi
-    ;;
-    -h)
-        echo "Usage: research-service-daemon.sh"
-
-        echo "command options:"
-        echo "  start               Start server in daemon mode"
-        echo "  stop                Stop server running in daemon mode"
-        echo "  restart             Restart server in daemon mode"
-	    echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
-        echo "  -h                  Display this help and exit"
-        shift
-        exit 0
-    ;;
-esac
\ No newline at end of file
diff --git a/modules/research-framework/research-service/src/main/resources/distribution/bin/research-service.sh b/modules/research-framework/research-service/src/main/resources/distribution/bin/research-service.sh
index 357eaa6d09..6aad39fca9 100755
--- a/modules/research-framework/research-service/src/main/resources/distribution/bin/research-service.sh
+++ b/modules/research-framework/research-service/src/main/resources/distribution/bin/research-service.sh
@@ -17,54 +17,171 @@
 # specific language governing permissions and limitations
 # under the License.
 
-. `dirname $0`/setenv.sh
+. $(dirname $0)/setenv.sh
+SERVICE_NAME="research-service"
+MAIN_CLASS="org.apache.airavata.research.service.ResearchServiceApplication"
+
 # Capture user's working dir before changing directory
 CWD="$PWD"
 cd ${AIRAVATA_HOME}/bin
-LOGO_FILE="logo.txt"
+LOGO_FILE="${AIRAVATA_HOME}/logo.txt"
 
-JAVA_OPTS="-Dairavata.server.truststore.path=${AIRAVATA_HOME}/conf/truststore.jks -Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
+JAVA_OPTS="-Dairavata.server.truststore.path=${AIRAVATA_HOME}/conf/airavata.jks -Dspring.config.location=${AIRAVATA_HOME}/conf/ -Dairavata.home=${AIRAVATA_HOME} -Dlog4j.configurationFile=file:${AIRAVATA_HOME}/conf/log4j2.xml"
 AIRAVATA_COMMAND=""
 EXTRA_ARGS=""
 SERVERS=""
 IS_SUBSET=false
 SUBSET=""
-DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/airavata.out"
+DEFAULT_LOG_FILE="${AIRAVATA_HOME}/logs/${SERVICE_NAME}.log"
 LOG_FILE=$DEFAULT_LOG_FILE
+DAEMON_MODE=false
+PID_PATH_NAME="${AIRAVATA_HOME}/bin/pid-${SERVICE_NAME}"
 
-# parse command arguments
-for var in "$@"
-do
-    case ${var} in
-        -xdebug)
-        	AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
-            JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
-            shift
-	    ;;
-        -log)
-            shift
-            LOG_FILE="$1"
-            shift
-            # If relative path, expand to absolute path using the user's $CWD
-            if [ -z "`echo "$LOG_FILE" | egrep "^/"`" ]; then
-                LOG_FILE="${CWD}/${LOG_FILE}"
-            fi
-        ;;
-        -h)
-            echo "Usage: research-service.sh"
+# Function to start the service
+start_service() {
+  if [ "$DAEMON_MODE" = true ]; then
+    echo "Starting $SERVICE_NAME in daemon mode..."
+    if [ ! -f $PID_PATH_NAME ]; then
+      nohup java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $* >$LOG_FILE 2>&1 &
+      echo $! >$PID_PATH_NAME
+      echo "$SERVICE_NAME started ..."
+    else
+      echo "$SERVICE_NAME is already running ..."
+    fi
+  else
+    echo "Starting $SERVICE_NAME in interactive mode..."
+    java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $*
+  fi
+}
+
+# Function to stop the service
+stop_service() {
+  if [ -f $PID_PATH_NAME ]; then
+    PID=$(cat $PID_PATH_NAME)
+    echo "$SERVICE_NAME stopping ..."
+    kill $PID
+    RETRY=0
+    while kill -0 $PID 2>/dev/null; do
+      echo "Waiting for the process $PID to be stopped"
+      RETRY=$(expr ${RETRY} + 1)
+      if [ "${RETRY}" -gt "20" ]; then
+        echo "Forcefully killing the process as it is not responding ..."
+        kill -9 $PID
+      fi
+      sleep 1
+    done
+    echo "$SERVICE_NAME stopped ..."
+    rm $PID_PATH_NAME
+  else
+    echo "$SERVICE_NAME is not running ..."
+  fi
+}
 
-            echo "command options:"
-            echo "  -xdebug             Start Research Service under JPDA debugger"
-            echo "  -h                  Display this help and exit"
-            shift
-            exit 0
-        ;;
-	    *)
-	        EXTRA_ARGS="${EXTRA_ARGS} ${var}"
-            shift
-        ;;
-    esac
+# Function to restart the service
+restart_service() {
+  if [ -f $PID_PATH_NAME ]; then
+    PID=$(cat $PID_PATH_NAME)
+    echo "$SERVICE_NAME stopping ..."
+    kill $PID
+    RETRY=0
+    while kill -0 $PID 2>/dev/null; do
+      echo "Waiting for the process $PID to be stopped"
+      RETRY=$(expr ${RETRY} + 1)
+      if [ "${RETRY}" -gt "20" ]; then
+        echo "Forcefully killing the process as it is not responding ..."
+        kill -9 $PID
+      fi
+      sleep 1
+    done
+    echo "$SERVICE_NAME stopped ..."
+    rm $PID_PATH_NAME
+  fi
+  start_service $*
+}
+
+# Function to show help
+show_help() {
+  echo "Usage: research-service.sh [options] [command]"
+  echo ""
+  echo "Commands (daemon mode only):"
+  echo "  start               Start server in daemon mode"
+  echo "  stop                Stop server running in daemon mode"
+  echo "  restart             Restart server in daemon mode"
+  echo ""
+  echo "Options:"
+  echo "  -d                  Run in daemon mode"
+  echo "  -xdebug             Start Research Service under JPDA debugger"
+  echo "  -log <LOG_FILE>     Where to redirect stdout/stderr (defaults to $DEFAULT_LOG_FILE)"
+  echo "  -h                  Display this help and exit"
+  echo ""
+  echo "Examples:"
+  echo "  research-service.sh                    # Run in interactive mode"
+  echo "  research-service.sh -d start           # Start in daemon mode"
+  echo "  research-service.sh -d stop            # Stop daemon"
+  echo "  research-service.sh -d restart         # Restart daemon"
+  echo "  research-service.sh -xdebug            # Run with debugger in interactive mode"
+}
+
+# parse command arguments
+for var in "$@"; do
+  case ${var} in
+  -d)
+    DAEMON_MODE=true
+    shift
+    ;;
+  -xdebug)
+    AIRAVATA_COMMAND="${AIRAVATA_COMMAND}"
+    JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=*:8000"
+    shift
+    ;;
+  -log)
+    shift
+    LOG_FILE="$1"
+    shift
+    # If relative path, expand to absolute path using the user's $CWD
+    if [ -z "$(echo "$LOG_FILE" | egrep "^/")" ]; then
+      LOG_FILE="${CWD}/${LOG_FILE}"
+    fi
+    ;;
+  start)
+    if [ "$DAEMON_MODE" = true ]; then
+      start_service $*
+      exit 0
+    else
+      echo "Error: 'start' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  stop)
+    if [ "$DAEMON_MODE" = true ]; then
+      stop_service
+      exit 0
+    else
+      echo "Error: 'stop' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  restart)
+    if [ "$DAEMON_MODE" = true ]; then
+      restart_service $*
+      exit 0
+    else
+      echo "Error: 'restart' command requires daemon mode (-d flag)"
+      exit 1
+    fi
+    ;;
+  -h)
+    show_help
+    exit 0
+    ;;
+  *)
+    EXTRA_ARGS="${EXTRA_ARGS} ${var}"
+    shift
+    ;;
+  esac
 done
 
-java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" \
-    org.apache.airavata.research.service.ResearchServiceApplication ${AIRAVATA_COMMAND} $*
\ No newline at end of file
+# If no specific command was given, run in interactive mode
+if [ "$DAEMON_MODE" = false ]; then
+  java ${JAVA_OPTS} -classpath "${AIRAVATA_CLASSPATH}" ${MAIN_CLASS} ${AIRAVATA_COMMAND} $*
+fi