Last modified by Normann P. Nielsen on 2011/10/31 20:13

Hide last authors
Normann P. Nielsen 1.1 1 My Confluence restart script - created since [[Tomcat>>http://en.wikipedia.org/wiki/Apache_Tomcat]] is not to good to close nicely and clean up resources.
2
3 Secondly, keeping an eye out for java stacktraces and that the server is actually airborne is to be prefered.
4
5
6 {{code}}
7
8 #!/bin/bash
9
10 if [ `whoami | grep root | wc -l` -eq 0 ]
11 then
12 echo "You must be root"
13 exit 1
14 fi
15
16 cd /tmp
17
18 echo "**Shutting down*****"
19 /opt/confluence/bin/shutdown.sh
20 echo "**Sleeping 20 ...**"
21 sleep 20
22 killall java
23
24 if [ `ps -ef | grep java | grep confluence | wc -l` -gt 0 ]
25 then
26 echo "There are still java processes running...."
27 exit 1
28 fi
29 echo "**Starting**"
30 /opt/confluence/bin/startup.sh
31 tail -f /opt/confluence/logs/catalina.out
32
33 {{/code}}