Commit ec9d2f3f authored by Andrew McNab's avatar Andrew McNab
Browse files

Run db12 at runlevel 94

parent 78db9012
VERSION=00.15
VERSION=00.16
......@@ -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__' :
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment