Unverified Commit efc5b0b8 authored by David Hoese's avatar David Hoese
Browse files

Update paths in cron script

parent 2d916250
......@@ -6,7 +6,7 @@
port = /dev/ttyr00
# % must be escaped if date formatting is used
filefmt = rig_ceilo-%%Y-%%m-%%d.ascii
outdir = /home/metobs/ceilo/data
outdir = /data1/incoming/aoss/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
......
*/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
......@@ -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 $?
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment