ソースを参照

Move proj_ol to rhcc

Alois Mahdal 10 年 前
コミット
136ee4e2d7
共有1 個のファイルを変更した0 個の追加96 個の削除を含む
  1. 0
    96
      include/proj_ol.sh

+ 0
- 96
include/proj_ol.sh ファイルの表示

@@ -1,96 +0,0 @@
1
-#!/bin/bash
2
-
3
-ffoo import core
4
-ffoo import flow
5
-ffoo import recon
6
-ffoo import testing
7
-ffoo import yummy
8
-
9
-
10
-OLCS_RUNHOW=$(iniread -s mk.run.how mk-ol.ini)
11
-OLCS_VGLOG="cimserver-valgrind.log"
12
-OLCS_VG="valgrind --trace-children=yes --log-file=$OLCS_VGLOG"
13
-OLCS_GDBFIFO="/tmp/gdbfifo.$$"
14
-
15
-disable_pam_for() {
16
-    echo "disabling PAM for $1"
17
-    sed -i -e 's/^[^#].* pam_/# \0/' /etc/pam.d/$1
18
-}
19
-
20
-start_cimserver() {
21
-    #
22
-    # Start CIMOM in a manner defined by OLCS_RUNHOW
23
-    #
24
-    local cmd="cimserver"
25
-    local args="daemon=false"
26
-    local out="cimserver.out"
27
-    local err="cimserver.err"
28
-    register_artifact "$out" "$err"
29
-    case $OLCS_RUNHOW in
30
-        simple)
31
-            $cmd $args > $out 2>$err &
32
-            ;;
33
-        service)
34
-            systemctl start tog-pegasus
35
-            ;;
36
-        gdb)
37
-            yum_install_if_needed gdb
38
-            rm -f $OLCS_GDBFIFO
39
-            mkfifo $OLCS_GDBFIFO
40
-            gdb cimserver 2>$err < $OLCS_GDBFIFO | tee $out &
41
-            echo  "run $args" > $OLCS_GDBFIFO
42
-            ;;
43
-        valgrind)
44
-            yum_install_if_needed valgrind
45
-            disable_pam_for wbem
46
-            chmod -s /usr/sbin/unix_chkpwd
47
-            register_artifact "$OLCS_VGLOG"
48
-            $OLCS_VG $cmd $args > $out 2>$err &
49
-            ;;
50
-    esac
51
-    wait_until -t 20 listening_on 5989
52
-}
53
-
54
-stop_cimserver() {
55
-    #
56
-    # Stop CIMOM according to how it was run (OLCS_RUNHOW)
57
-    #
58
-    echo "stopping cimserver"
59
-    case $OLCS_RUNHOW in
60
-        simple)
61
-            killall cimserver
62
-            ;;
63
-        service)
64
-            systemctl stop tog-pegasus
65
-            ;;
66
-        gdb)
67
-            killall cimserver
68
-            echo bt > $OLCS_GDBFIFO
69
-            echo quit > $OLCS_GDBFIFO
70
-            echo y > $OLCS_GDBFIFO
71
-            rm -f $OLCS_GDBFIFO
72
-            ;;
73
-        valgrind)
74
-            killall -r ^memcheck-
75
-            ;;
76
-    esac
77
-    wait_until -t 20 -e ! pids_matching cimserver,^memcheck-
78
-}
79
-
80
-comment_cimserver() {
81
-    #
82
-    # Present a human-readable version of OLCS_RUNHOW
83
-    #
84
-    case $OLCS_RUNHOW in
85
-        simple)
86
-            echo "as a separate process"
87
-            ;;
88
-        service)
89
-            echo "as a service"
90
-            ;;
91
-        gdb|valgrind)
92
-            echo "under $OLCS_RUNHOW"
93
-            ;;
94
-    esac
95
-}
96
-