ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ECALDQM/gui/guiControl.sh
Revision: 1.2
Committed: Thu Oct 4 15:18:13 2012 UTC (12 years, 6 months ago) by yiiyama
Content type: application/x-sh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -1 lines
Log Message:
new repository version

File Contents

# Content
1 #!/bin/sh
2
3 guidir=/data/ecalod-disk01/dqm-gui
4 srcdir=/nfshome0/ecalpro/DQM/gui
5
6 manage="$guidir/current/config/dqmgui/manage -f online"
7
8 dqmenv(){
9 if [ ${HOSTNAME} != "srv-S2F19-29" ]; then
10 echo "This is not ecalod-disk01 !!!"
11 exit 1
12 fi
13 cd $guidir
14 . $PWD/current/apps/dqmgui/etc/profile.d/env.sh
15 }
16
17 # Deployment command (and the local repository accordingly) needs to be up to date
18 # Look up DQMTest in CMS twiki
19 dqmdeploy(){
20 export http_proxy=http://cmsproxy.cms:3128/
21
22 cd $guidir
23 $PWD/deployment/Deploy -R cmsweb@1210f -t MYDEV -s "prep sw post" $PWD dqmgui/bare
24 }
25
26 ulimit -c 0
27
28 case "$1" in
29 start)
30 dqmdeploy
31 dqmenv
32 $manage start "I did read documentation"
33 ;;
34 stop)
35 dqmenv
36 $manage stop "I did read documentation"
37 ;;
38 update)
39 cd $srcdir/deployment
40 git pull
41 ;;
42 *)
43 echo "Usage: guiControl.sh (start|stop|update)"
44 exit 1
45 ;;
46 esac
47
48 exit 0