Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mjf-scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
machinejobfeatures
mjf-scripts
Commits
4218dfcb
Commit
4218dfcb
authored
9 years ago
by
Andrew McNab
Browse files
Options
Downloads
Patches
Plain Diff
Put mjf-get-total-cpu in /usr/sbin
parent
7c693324
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
Makefile
+2
-2
2 additions, 2 deletions
Makefile
mjf-get-total-cpu.torque
+1
-1
1 addition, 1 deletion
mjf-get-total-cpu.torque
mjf.init
+2
-2
2 additions, 2 deletions
mjf.init
with
5 additions
and
5 deletions
Makefile
+
2
−
2
View file @
4218dfcb
...
@@ -56,11 +56,11 @@ torque-install: $(INSTALL_FILES) install
...
@@ -56,11 +56,11 @@ torque-install: $(INSTALL_FILES) install
cp
mjf-torque.csh
\
cp
mjf-torque.csh
\
$(
RPM_BUILD_ROOT
)
/etc/profile.d/mjf.csh
$(
RPM_BUILD_ROOT
)
/etc/profile.d/mjf.csh
mkdir
-p
$(
RPM_BUILD_ROOT
)
/var/lib/torque/mom_priv
mkdir
-p
$(
RPM_BUILD_ROOT
)
/var/lib/torque/mom_priv
mkdir
-p
$(
RPM_BUILD_ROOT
)
/usr/bin
mkdir
-p
$(
RPM_BUILD_ROOT
)
/usr/
s
bin
cp
prologue.user epilogue.user
\
cp
prologue.user epilogue.user
\
$(
RPM_BUILD_ROOT
)
/var/lib/torque/mom_priv
$(
RPM_BUILD_ROOT
)
/var/lib/torque/mom_priv
cp
mjf-get-total-cpu.torque
\
cp
mjf-get-total-cpu.torque
\
$(
RPM_BUILD_ROOT
)
/usr/bin/mjf-get-total-cpu
$(
RPM_BUILD_ROOT
)
/usr/
s
bin/mjf-get-total-cpu
torque-rpm
:
mjf-scripts.tgz
torque-rpm
:
mjf-scripts.tgz
...
...
This diff is collapsed.
Click to expand it.
mjf-get-total-cpu.torque
+
1
−
1
View file @
4218dfcb
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
# Requires that the pbsnodes command is installed and that you have
# Requires that the pbsnodes command is installed and that you have
# permission to run it.
# permission to run it.
#
#
# This script must be installed as /usr/bin/mjf-get-total-cpu to be
# This script must be installed as /usr/
s
bin/mjf-get-total-cpu to be
# picked up by the generic /etc/rc.d/init.d/mjf !
# picked up by the generic /etc/rc.d/init.d/mjf !
#
#
# Andrew.McNab@cern.ch
# Andrew.McNab@cern.ch
...
...
This diff is collapsed.
Click to expand it.
mjf.init
+
2
−
2
View file @
4218dfcb
...
@@ -39,8 +39,8 @@ start() {
...
@@ -39,8 +39,8 @@ start() {
if
[
"
$total_cpu
"
==
""
]
;
then
if
[
"
$total_cpu
"
==
""
]
;
then
# If not explicitly configured then try to get it from the batch system
# If not explicitly configured then try to get it from the batch system
if
[
-x
/usr/bin/mjf-get-total-cpu
]
;
then
if
[
-x
/usr/
s
bin/mjf-get-total-cpu
]
;
then
total_cpu
=
`
/usr/bin/mjf-get-total-cpu
`
total_cpu
=
`
/usr/
s
bin/mjf-get-total-cpu
`
fi
fi
# If still not explicitly configured then it get from the OS
# If still not explicitly configured then it get from the OS
...
...
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