Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MetObs
AossCeilo
Commits
efc5b0b8
Unverified
Commit
efc5b0b8
authored
Sep 05, 2017
by
David Hoese
Browse files
Update paths in cron script
parent
2d916250
Changes
4
Show whitespace changes
Inline
Side-by-side
scripts/ceilo_ingest.cfg
View file @
efc5b0b8
...
...
@@ -6,7 +6,7 @@
port = /dev/ttyr00
# % must be escaped if date formatting is used
filefmt = rig_ceilo-%%Y-%%m-%%d.ascii
outdir = /
home/metob
s/ceilo
/data
outdir = /
data1/incoming/aos
s/ceilo
[loggers]
keys = root, ceilo
...
...
@@ -41,7 +41,7 @@ formatter = generic
# size 20M
#}
class = handlers.WatchedFileHandler
args = ('/
home
/metobs/log/ceilo_ingest.log','a')
args = ('/
opt
/metobs/
aoss_ceilo/
log/ceilo_ingest.log','a')
level = NOTSET
formatter = generic
...
...
scripts/crontab.txt
View file @
efc5b0b8
*/1 * * * *
$HOME/ceilo
/rsync_data.sh &> /dev/null
*/5 * * * *
$HOME/ceilo
/start_ceilo_ingest.sh &> /dev/null
*/1 * * * *
/opt/metobs/aoss_ceilo/scripts
/rsync_data.sh &> /dev/null
*/5 * * * *
/opt/metobs/aoss_ceilo/scripts
/start_ceilo_ingest.sh &> /dev/null
scripts/rsync_data.sh
View file @
efc5b0b8
...
...
@@ -2,8 +2,9 @@
# Offset TZ by 1 minute to make sure we get data from 23:59 to 00:00
export
TZ
=
"UTC-00:01:00"
LOCK
=
$HOME
/ceilo/
$(
basename
"
$0
"
)
.lock
SRC
=
"
$HOME
/ceilo/data/rig_ceilo-
$(
date
+%Y-%m-%d
)
.ascii"
ENV
=
/opt/metobs/aoss_ceilo
LOCK
=
$ENV
/lock/
$(
basename
"
$0
"
)
.lock
SRC
=
"/data1/incoming/aoss/ceilo/rig_ceilo-
$(
date
+%Y-%m-%d
)
.ascii"
(
flock
-x
-n
200
||
exit
$?
...
...
scripts/start_ceilo_ingest.sh
View file @
efc5b0b8
...
...
@@ -4,6 +4,6 @@ SCRN=$(screen -list | grep $NAME | awk '{print $1}')
if
[
-n
"
$SCRN
"
]
;
then
echo
Screen already running:
$SCRN
else
screen
-S
$NAME
-d
-m
/
home
/metobs/
env/production/bin/ct25k_
ingest
-c
/
home
/metobs/
ceilo
/
$NAME
.cfg
screen
-S
$NAME
-d
-m
/
opt
/metobs/
aoss_ceilo/bin/python
-m
aossceilo.
ingest
-c
/
opt
/metobs/
aoss_ceilo/repos/git/AossCeilo/scripts
/
$NAME
.cfg
echo
Started
in
screen
$(
screen
-list
|
grep
$NAME
|
awk
'{print $1}'
)
fi
Write
Preview
Supports
Markdown
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