Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
add centos service file
Browse files Browse the repository at this point in the history
  • Loading branch information
Komal Thareja committed Apr 26, 2019
1 parent a66aa0e commit 8c146fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/start_imgproxy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
#set -x
IMGPROXY_PATH=/opt/imageproxy
AXIS2_HOME=/opt/imageproxy/axis2
JAVA_HOME=/usr/java/latest

pushd $IMGPROXY_PATH
nohup su geni-orca -c "export JAVA_HOME=${JAVA_HOME}; export AXIS2_HOME=${AXIS2_HOME}; ./axis2/bin/axis2server.sh" > logs/axis2server.log &
popd
2 changes: 2 additions & 0 deletions scripts/stop_imgproxy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
pkill -f imageproxy

0 comments on commit 8c146fd

Please sign in to comment.