Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossCeilo
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossCeilo
Commits
3572ee45
Unverified
Commit
3572ee45
authored
7 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Add ceilometer cron scripts
parent
8df0e487
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/ceilo_ingest.cfg
+49
-0
49 additions, 0 deletions
scripts/ceilo_ingest.cfg
scripts/rsync_data.sh
+17
-0
17 additions, 0 deletions
scripts/rsync_data.sh
scripts/start_ceilo_ingest.sh
+9
-0
9 additions, 0 deletions
scripts/start_ceilo_ingest.sh
with
75 additions
and
0 deletions
scripts/ceilo_ingest.cfg
0 → 100644
+
49
−
0
View file @
3572ee45
[ct25k]
# settings:
24007E1
#port
= /dev/ttyS2
# moxa
port 1
port
= /dev/ttyr00
# %
must be escaped if date formatting is used
filefmt
= rig_ceilo-%%Y-%%m-%%d.ascii
outdir
= /home/metobs/ceilo/data
[loggers]
keys
= root, ceilo
[handlers]
keys
= console, file
[formatters]
keys
= generic
[logger_root]
level
= INFO
handlers
= console, file
[logger_ceilo]
level
= TRACE
handlers
=
qualname
= metobs.ceilo
[handler_console]
class
= StreamHandler
args
= (sys.stderr,)
level
= NOTSET
formatter
= generic
[handler_file]
# Auto-rotates
when file inode changes.
# Meant
to be used with logrotate, something like:
#/home/metobs/log/ceilo.log
{
# compress
# rotate
10
# size
20M
#}
class
= handlers.WatchedFileHandler
args
= ('/home/metobs/log/ceilo_ingest.log','a')
level
= NOTSET
formatter
= generic
[formatter_generic]
format
= %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
This diff is collapsed.
Click to expand it.
scripts/rsync_data.sh
0 → 100755
+
17
−
0
View file @
3572ee45
#!/usr/bin/env bash
# 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"
(
flock
-x
-n
200
||
exit
$?
if
[
-e
$SRC
]
;
then
echo
"
$0
(
$$
):
$SRC
"
#rsync -aux $SRC rsync://tahiti.instrument/incoming/Instrument_Data/METOBS/RIG/Ceilo/raw
rsync
-aux
$SRC
rsync://metobs01.instrument/incoming/aoss-ceilo
fi
)
200>
$LOCK
This diff is collapsed.
Click to expand it.
scripts/start_ceilo_ingest.sh
0 → 100755
+
9
−
0
View file @
3572ee45
#!/usr/bin/env bash
NAME
=
ceilo_ingest
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
echo
Started
in
screen
$(
screen
-list
|
grep
$NAME
|
awk
'{print $1}'
)
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment