File: mk.bind2

package info (click to toggle)
pcp 7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 252,748 kB
  • sloc: ansic: 1,483,656; sh: 182,366; xml: 160,462; cpp: 83,813; python: 24,980; perl: 18,327; yacc: 6,877; lex: 2,864; makefile: 2,738; awk: 165; fortran: 60; java: 52
file content (38 lines) | stat: -rwxr-xr-x 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
#
# remake the bind2-* archives ...
# these archives are intended to be checked in and not remade, this script is
# simply a record of how they were created
#
# base
# bind2-9.18 Bind 9.18
# bind2-9.18+	Bind 9.18 + changes from https://github.com/performancecopilot/pcp/issues/2113

base=bind2-9.18
base=bind2-9.18+

. /etc/pcp.env

tmp=/var/tmp/$$
rm -f $tmp.*
trap "rm -f $tmp.*; exit 0" 0 1 2 3 15

cat <<End-of-File >>$tmp.config
log advisory on 1 seconds {
        bind2
        sample.bin
	sample.long
}
End-of-File

rm -f $base.0  $base.index  $base.meta $base.*

if pmlogger -T 5sec -c $tmp.config $base
then
    pmlogcompress $base
else
    echo "Argh: pmlogger failed ..."
    cat pmlogger.log
fi