1 |
< |
### RPM cms dbs-server DBS_1_1_2e |
1 |
> |
### RPM cms dbs-server DBS_1_0_8 |
2 |
|
|
3 |
|
%define cvstag %v |
4 |
|
Source: cvs://:pserver:anonymous@cmscvs.cern.ch:2401/cvs_server/repositories/CMSSW?passwd=AA_:yZZ3e&module=DBS/Servers/JavaServer&export=DBS&tag=-r%{cvstag}&output=/dbs-server.tar.gz |
12 |
|
%build |
13 |
|
echo "PWD=$PWD" |
14 |
|
cd Servers/JavaServer |
15 |
+ |
ver="DBS_1_0_8" |
16 |
|
# fix context.xml file |
17 |
|
cat > etc/context.xml << EOF_CONTEXT |
18 |
|
<Context path="/servlet/DBSServlet" docBase="DBSServlet" debug="5" reloadable="true" crossContext="true"> |
19 |
< |
<SupportedSchemaVersion schemaversion="DBS_1_0_9" /> |
20 |
< |
<SupportedClientVersions clientversions="DBS_1_0_1, DBS_1_0_5, DBS_1_0_7, DBS_1_0_8, DBS_1_0_9, DBS_1_1_2"/> |
19 |
> |
<SchemaOwner schemaowner="${ver}" /> |
20 |
> |
<SupportedSchemaVersion schemaversion="${ver}" /> |
21 |
> |
<SupportedClientVersions clientversions="DBS_1_0_1, DBS_1_0_5, DBS_1_0_7, DBS_1_0_8"/> |
22 |
|
<DBSBlockConfig maxBlockSize="2000000000000" maxBlockFiles="100" /> |
23 |
|
|
24 |
|
<Resource name="jdbc/dbs" |
191 |
|
|
192 |
|
# kill running mysql|tomcat under my account since build is over |
193 |
|
echo "+++ Clean-up mysqld|tomcat processes" |
194 |
< |
ps -w -w -f -u`whoami` | egrep "mysqld|tomcat" | grep -v egrep | awk '{print "kill -9 "$2""}' |
194 |
> |
#ps -w -w -f -u`whoami` | egrep "mysqld|tomcat" | grep -v egrep | awk '{print "kill -9 "$2""}' |
195 |
|
#ps -w -w -f -u`whoami` | egrep "mysqld|tomcat" | grep -v egrep | awk '{print "kill -9 "$2""}' |/bin/sh |
196 |
|
killall -q mysqld |
197 |
|
killall -q tomcat |
199 |
|
echo |
200 |
|
echo |
201 |
|
echo "##### IMPORTANT!!! #####" |
202 |
< |
echo "For your convinience we created" |
202 |
> |
echo "To work with DBS you need to source init.sh file located at" |
203 |
> |
echo "$DBS_SERVER_ROOT/etc/profile.d/init.sh" |
204 |
> |
echo |
205 |
> |
echo "OR use init script to start|stop|status DBS services:" |
206 |
|
echo "$DBS_SERVER_ROOT/Servers/JavaServer/bin/dbs_init.sh" |
207 |
< |
echo "init script file which can be placed into /etc/init.d/ to allow auto-startup of DBS service" |
208 |
< |
echo "##### END OF README #####" |
207 |
> |
echo "init script file can be placed into /etc/init.d/ to allow auto-startup of DBS service" |
208 |
> |
echo "##########################" |
209 |
|
echo |
210 |
|
|