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
df527b15
Verified
Commit
df527b15
authored
11 months ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Try to make scripts relative to ENV
parent
a13ceb96
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/archive_ceilo.sh
+3
-1
3 additions, 1 deletion
scripts/archive_ceilo.sh
scripts/ceilo_ingest.cfg
+4
-1
4 additions, 1 deletion
scripts/ceilo_ingest.cfg
scripts/start_ceilo_ingest.sh
+5
-1
5 additions, 1 deletion
scripts/start_ceilo_ingest.sh
with
12 additions
and
3 deletions
scripts/archive_ceilo.sh
+
3
−
1
View file @
df527b15
#!/usr/bin/env bash
# Moves ceilometer data in raw (inst-data) and cache
ENV
=
/opt/metobs/aoss_ceilo
SCRIPT_HOME
=
"
$(
cd
-P
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
# Assumes this script is in /opt/*/aoss_ceilo*/repos/git/AossCeilo/scripts/
ENV
=
"
$(
realpath
$(
realpath
${
SCRIPT_HOME
}
)
/../../../../
)
"
LOGDIR
=
$ENV
/log
LOCK
=
$ENV
/lock/
$(
basename
$0
)
.lock
...
...
This diff is collapsed.
Click to expand it.
scripts/ceilo_ingest.cfg
+
4
−
1
View file @
df527b15
[DEFAULT]
root_log_dir
= /opt/metobs/aoss_ceilo/log
log_file
= $(root_log_dir)s/ceilo_ingest.log
[ct25k]
# settings:
24007E1
...
...
@@ -46,7 +49,7 @@ formatter = generic
# size
20M
#}
class
= handlers.WatchedFileHandler
args
= (
'/opt/metobs/aoss_ceilo/log/ceilo_ingest.log'
,'a')
args
= (
%(log_file)s
,'a')
level
= NOTSET
formatter
= generic
...
...
This diff is collapsed.
Click to expand it.
scripts/start_ceilo_ingest.sh
+
5
−
1
View file @
df527b15
#!/usr/bin/env bash
SCRIPT_HOME
=
"
$(
cd
-P
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
# Assumes this script is in /opt/*/aoss_ceilo*/repos/git/AossCeilo/scripts/
ENV
=
"
$(
realpath
$(
realpath
${
SCRIPT_HOME
}
)
/../../../../
)
"
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
/opt/metobs/aoss_ceilo
/bin/python
-m
aossceilo.ingest
-c
/opt/metobs/aoss_ceilo
/repos/git/AossCeilo/scripts/
$NAME
.cfg
screen
-S
$NAME
-d
-m
${
ENV
}
/bin/python
-m
aossceilo.ingest
-c
${
ENV
}
/repos/git/AossCeilo/scripts/
$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