Ubuntu Pastebin

Paste from svetoslav at Tue, 28 Feb 2017 04:45:29 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash


#export JAVA_HOME="/usr/lib/jvm/jdk1.7.0_07"
 
startcmd='/opt/WSO2/wso2is-5.3.0/bin/wso2server.sh start > /dev/null &'
restartcmd='/opt/WSO2/wso2is-5.3.0/bin/wso2server.sh restart > /dev/null &'
stopcmd='/opt/WSO2/wso2is-5.3.0/bin/wso2server.sh stop > /dev/null &'
 
case "$1" in
start)
   echo "Starting WSO2 Application Server ..."
   su -c "${startcmd}" wso2server
;;
restart)
   echo "Re-starting WSO2 Application Server ..."
   su -c "${restartcmd}" wso2server
;;
stop)
   echo "Stopping WSO2 Application Server ..."
   su -c "${stopcmd}" wso2server
;;
*)
   echo "Usage: $0 {start|stop|restart}"
exit 1
esac
Download as text