Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5e460723
authored
Jul 06, 2016
by
Avi Junowicz
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
automatic update script for OTP
parent
02315d9f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
common/scripts/mcx/update_otp.sh
common/scripts/mcx/update_otp.sh
0 → 100644
View file @
5e460723
#!/bin/bash
DATE
=
`
date
'+%y%m%d'
`
cd
/root/chicago
wget http://www.transitchicago.com/downloads/sch_data/google_transit.zip
wget https://s3.amazonaws.com/metro-extracts.mapzen.com/chicago_illinois.osm.pbf
java
-Xmx8G
-jar
/root/Transport/OpenTripPlanner/otp-core/target/otp.jar
--build
/root/chicago
--transitIndex
cd
/var/otp/graphs
mv Graph.obj Graph.obj_
$DATE
gzip Graph.obj_
$DATE
cp
-p
/root/chicago/Graph.obj
.
PID
=
`
pgrep
-f
otp.jar
`
kill
-9
$PID
if
[
$?
-eq
0
]
then
echo
"OTP stopped successfully"
echo
$?
else
echo
"Failed to stop OTP"
fi
cd
/root/Transport/OpenTripPlanner
rm nohup.out
nohup java
-Xmx4G
-jar
otp-core/target/otp.jar
--server
&
cd
/root/chicago
mkdir
$DATE
mv
*
.zip
$DATE
mv
*
.pbf
$DATE
mv
*
.obj
$DATE
cd
$DATE
gzip
*
.obj
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment