Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
dCache
cta
Commits
4ae7bb8e
Commit
4ae7bb8e
authored
5 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Improved grepping of /var/log/eos/fst/cta-fst-gcd.log in ctaeos-mgm.sh
parent
f7e4721b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
+12
-2
12 additions, 2 deletions
...egration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
with
12 additions
and
2 deletions
continuousintegration/docker/ctafrontend/cc7/opt/run/bin/ctaeos-mgm.sh
+
12
−
2
View file @
4ae7bb8e
...
...
@@ -172,11 +172,21 @@ else
runuser
-u
daemon setsid /usr/bin/cta-fst-gcd
>
/dev/null 2>&1 < /dev/null &
fi
echo
"Giving cta-fst-gcd 1 second to start logging"
sleep
1
let
EXPECTED_NB_STARTED_CTA_FST_GCD
=
NB_STARTED_CTA_FST_GCD+1
ACTUAL_NB_STARTED_CTA_FST_GCD
=
`
grep
"cta-fst-gcd started"
/var/log/eos/fst/cta-fst-gcd.log |
wc
-l
`
ACTUAL_NB_STARTED_CTA_FST_GCD
=
0
if
test
-f
/var/log/eos/fst/cta-fst-gcd.log
;
then
ACTUAL_NB_STARTED_CTA_FST_GCD
=
`
grep
"cta-fst-gcd started"
/var/log/eos/fst/cta-fst-gcd.log |
wc
-l
`
else
echo
"/usr/bin/cta-fst-gcd DOES NOT EXIST"
exit
1
fi
if
test
${
EXPECTED_NB_STARTED_CTA_FST_GCD
}
=
${
ACTUAL_NB_STARTED_CTA_FST_GCD
}
;
then
echo
"/usr/bin/cta-fst-gcd
RUNNING
"
echo
"/usr/bin/cta-fst-gcd
LOGGED 'cta-fst-gcd started'
"
else
echo
"/usr/bin/cta-fst-gcd DID NOT LOG 'cta-fst-gcd started'"
exit
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