ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/ECALDQM/gui/guiControl.sh
Revision: 1.1
Committed: Wed Oct 3 13:30:45 2012 UTC (12 years, 7 months ago) by yiiyama
Content type: application/x-sh
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 yiiyama 1.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     dqmdeploy(){
18     export http_proxy=http://cmsproxy.cms:3128/
19    
20     cd $guidir
21     $PWD/deployment/Deploy -R cmsweb@1208d -t MYDEV -s "prep sw post" $PWD dqmgui/bare
22     }
23    
24     ulimit -c 0
25    
26     case "$1" in
27     start)
28     dqmdeploy
29     dqmenv
30     $manage start "I did read documentation"
31     ;;
32     stop)
33     dqmenv
34     $manage stop "I did read documentation"
35     ;;
36     update)
37     cd $srcdir/deployment
38     git pull
39     ;;
40     *)
41     echo "Usage: guiControl.sh (start|stop|update)"
42     exit 1
43     ;;
44     esac
45    
46     exit 0