Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
monitoring
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pika
monitoring
Commits
ca3211ae
Commit
ca3211ae
authored
Jul 07, 2020
by
fwinkler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added collect status in job control script.
parent
5f60136b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
job_control/slurm/taurus/pika_control.sh
job_control/slurm/taurus/pika_control.sh
+15
-1
No files found.
job_control/slurm/taurus/pika_control.sh
View file @
ca3211ae
...
...
@@ -9,6 +9,17 @@ function pika_clean() {
rm
-rf
/opt/pika/
*
}
function
pika_status
()
{
COLLECTD_PID
=
`
ps
-eo
pid,cmd |
grep
-v
grep
|
grep
"pika_collectd"
|
awk
'{print $1}'
`
# check if COLLECTD_PID is empty
if
[
-z
"
$COLLECTD_PID
"
]
;
then
echo
"PIKA collectd is not running."
else
echo
"PIKA collectd is running. PID=
$COLLECTD_PID
"
fi
}
function
pika_install
()
{
mkdir
-p
${
PIKA_INSTALL_PATH
}
echo
-e
"tar xzf
${
PIKA_PACKAGE_PATH
}
-C
${
PIKA_INSTALL_PATH
}
/.."
...
...
@@ -32,9 +43,12 @@ function pika_stop() {
if
[
!
$#
-eq
1
]
;
then
echo
"One argument required!"
echo
"./pika_control [purge|install|start|stop]"
echo
"./pika_control [
status|
purge|install|start|stop]"
else
case
"
$1
"
in
status
)
pika_status
;;
purge
)
pika_stop
pika_clean
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment