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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossCeilo
Commits
f935301d
Verified
Commit
f935301d
authored
Jul 30, 2024
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Make ingest log directory default to env dir
parent
df527b15
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.rst
+2
-2
2 additions, 2 deletions
README.rst
aossceilo/ingest.py
+8
-1
8 additions, 1 deletion
aossceilo/ingest.py
scripts/ceilo_ingest.cfg
+2
-2
2 additions, 2 deletions
scripts/ceilo_ingest.cfg
scripts/start_ceilo_ingest.sh
+1
-1
1 addition, 1 deletion
scripts/start_ceilo_ingest.sh
with
13 additions
and
6 deletions
README.rst
+
2
−
2
View file @
f935301d
...
...
@@ -36,8 +36,8 @@ directory or ``/opt/miniforge_YYYYMMDD`` directory.
2. Clone the git repository into the environment and other setup::
cd /opt/metobs/aoss_ceilo
sudo mkdir -p repos/git log
s
locks
sudo chown metobs:metobsgrp log
s
locks
sudo mkdir -p repos/git log locks
sudo chown metobs:metobsgrp log locks
sudo git clone "https://gitlab.ssec.wisc.edu/metobs/AossCeilo.git" repos/git/AossCeilo
sudo ln -s repos/git/AossCeilo/scripts .
sudo git clone "https://gitlab.ssec.wisc.edu/metobs/MetObsCommon.git" repos/git/MetObsCommon
...
...
...
...
This diff is collapsed.
Click to expand it.
aossceilo/ingest.py
+
8
−
1
View file @
f935301d
...
...
@@ -137,6 +137,9 @@ def main():
"
error
"
:
logging
.
ERROR
,
}
parser
.
add_argument
(
"
-v
"
,
dest
=
"
loglvl
"
,
choices
=
levels
.
keys
(),
default
=
"
info
"
)
parser
.
add_argument
(
"
--log-dir
"
,
help
=
"
Base directory where log files will be written
"
)
parser
.
add_argument
(
"
-o
"
,
dest
=
"
outdir
"
,
default
=
"
.
"
)
parser
.
add_argument
(
"
-f
"
,
...
...
@@ -156,7 +159,11 @@ def main():
if
args
.
cfgfile
:
from
logging.config
import
fileConfig
fileConfig
(
args
.
cfgfile
)
defaults
=
{}
if
args
.
log_dir
:
defaults
[
"
root_log_dir
"
]
=
args
.
log_dir
fileConfig
(
args
.
cfgfile
,
defaults
=
defaults
)
config
=
read_cfg
(
args
.
cfgfile
)
portdev
=
config
.
get
(
"
port
"
)
filefmt
=
config
.
get
(
"
filefmt
"
)
...
...
...
...
This diff is collapsed.
Click to expand it.
scripts/ceilo_ingest.cfg
+
2
−
2
View file @
f935301d
[DEFAULT]
root_log_dir
=
/opt/metobs/aoss_ceilo/log
log_file
=
$
(root_log_dir)s/ceilo_ingest.log
log_file
=
%
(root_log_dir)s/ceilo_ingest.log
[ct25k]
# settings: 24007E1
...
...
@@ -49,7 +49,7 @@ formatter = generic
# size 20M
#}
class
=
handlers.WatchedFileHandler
args
=
(%(log_file)s
,
'a')
args
=
(
'
%(log_file)s
',
'a')
level
=
NOTSET
formatter
=
generic
...
...
...
...
This diff is collapsed.
Click to expand it.
scripts/start_ceilo_ingest.sh
+
1
−
1
View file @
f935301d
...
...
@@ -8,6 +8,6 @@ SCRN=$(screen -list | grep $NAME | awk '{print $1}')
if
[
-n
"
$SCRN
"
]
;
then
echo
Screen already running:
$SCRN
else
screen
-S
$NAME
-d
-m
${
ENV
}
/bin/python
-m
aossceilo.ingest
-c
${
ENV
}
/repos/git/AossCeilo/scripts/
$NAME
.cfg
screen
-S
$NAME
-d
-m
${
ENV
}
/bin/python
-m
aossceilo.ingest
--log-dir
${
ENV
}
/log
-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
sign in
to comment