Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
machinejobfeatures
mjf-scripts
Commits
ec9d2f3f
Commit
ec9d2f3f
authored
Nov 13, 2016
by
Andrew McNab
Browse files
Run db12 at runlevel 94
parent
78db9012
Changes
3
Hide whitespace changes
Inline
Side-by-side
VERSION
View file @
ec9d2f3f
VERSION=00.1
5
VERSION=00.1
6
WN-mjf.py
View file @
ec9d2f3f
...
...
@@ -81,7 +81,7 @@ class mjf:
map
(
lambda
x
:
self
.
probe
(
x
),
self
.
featuredict
.
keys
())
sys
.
stdout
.
write
(
'%s %s
\n\n
'
%
(
self
.
logdictinv
[
self
.
exitcode
],
self
.
reportline
))
map
(
lambda
x
:
sys
.
stdout
.
write
(
x
+
'
\n
'
),
self
.
loglines
)
map
(
lambda
x
:
sys
.
stdout
.
write
(
x
+
'
\n
'
),
self
.
loglines
)
sys
.
exit
(
self
.
exitcode
)
if
__name__
==
'__main__'
:
...
...
db12.init
View file @
ec9d2f3f
...
...
@@ -2,7 +2,7 @@
#
# db12 Run DB12 fast benchmark and create /etc/db12 files
#
# chkconfig: 345
09 91
# chkconfig: 345
94 6
# description: Run DB12 fast benchmark and create /etc/db12 files
# Source function library.
...
...
@@ -25,9 +25,17 @@ start() {
[
"
$EUID
"
!=
"0"
]
&&
exit
1
echo
-n
$"Run DB12 fast benchmark: "
if
[
-x
/bin/plymouth
]
;
then
plymouth deactivate
fi
db12_sum
=
`
/usr/sbin/DIRACbenchmark.py
$total_cpu
|
cut
-f2
-d
' '
`
if
[
-x
/bin/plymouth
]
;
then
plymouth reactivate
fi
if
[
"
$db12_sum
"
!=
""
]
;
then
echo
"
$db12_sum
"
>
/etc/db12/db12
fi
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment